UNPKG

@utilify/core

Version:

Modern, strongly typed, and safe utility function library for JavaScript and TypeScript. Includes type checking, manipulation of arrays, objects, strings, dates, colors, numbers, regular expressions, and more. Compatible with Browser, Node.js, Deno, and B

10 lines 419 B
/** * Returns the difference between two arrays (elements in array1 not in array2). * @template T * @param {T[]} array1 - The first array. * @param {T[]} array2 - The second array. * @returns {T[]} Array of elements in array1 not in array2. * @throws {TypeError} If either argument is not an array. */ export default function difference<T>(array1: T[], array2: T[]): T[]; //# sourceMappingURL=difference.d.ts.map