param arr1 param arr2 export function mergeUnique < T > ( arr1 , arr2 ) { const arr = arr1 ; for ( let index = 0 , len = arr2 . length ; index < len ; index += 1 ) { if ( ! arr . includes ( arr2 [ index ] ) ) { arr . push ( arr2 [ index ] ) ; } } return arr ; } param arr export function unique < T > ( arr ) { const array = [ ] ; for ( let index = 0 , len = arr . length ; index < len ; index += 1 ) { if ( ! array . includes ( arr [ index ] ) ) { array . push ( arr [ index ] ) ; } } return array ; }