@n3okill/utils
Version:
Many javascript helpers
8 lines (7 loc) • 314 B
TypeScript
/**
* Return the difference between arrays (all the items that appear only once in the first array)
* @param arr The first array
* @param args Other arrays to compare
* @returns The resulting array with the diff items
*/
export declare function diff<T>(arr: Array<T>, ...args: Array<Array<T> | T>): Array<T>;