@andranik-arakelyan/js-utilities
Version:
Javascript utilities
9 lines (8 loc) • 423 B
TypeScript
/**
* Subtracts elements of the second array from the first array.
*
* @param arr1 - The array from which elements will be subtracted.
* @param arr2 - The array containing elements to subtract from the first array.
* @returns A new array containing elements from the first array that are not present in the second array.
*/
export declare function arraySubtract<T extends string | number>(arr1: T[], arr2: T[]): T[];