js-fns
Version:
Modern JavaScript utility library focused on the build size
11 lines (10 loc) • 354 B
TypeScript
/**
* Creates a new array with all unique elements from the given arrays.
*
* @param arrays - The array of arrays of elements to get unique elements from
* @returns An array with all unique elements from the given arrays
*
* @category Array
* @public
*/
export default function union<ElementType>(...arrays: ElementType[][]): Array<ElementType>;