@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 • 387 B
TypeScript
/**
* Checks if an array includes a value using deep equality.
* @template T
* @param {T[]} array - The array to search.
* @param {T} value - The value to find.
* @returns {boolean} True if value is found, false otherwise.
* @throws {TypeError} If array is not an array.
*/
export default function includes<T>(array: T[], value: T): boolean;
//# sourceMappingURL=includes.d.ts.map