export function union < T > ( a , b ) { return a . concat ( b . filter ( ( x ) => a . indexOf ( x ) < 0 ) ) ; } export function inherit ( ) { Array . prototype . union = function < T > ( array ) : T [ ] { return union ( this as T [ ] , array ) ; } ; } export default union ;