@newdash/newdash
Version:
javascript/typescript utility library
12 lines (11 loc) • 397 B
TypeScript
export default arrayIncludes;
/**
* A specialized version of `includes` for arrays without support for
* specifying an index to search from.
*
* @private
* @param {Array} [array] The array to inspect.
* @param {*} target The value to search for.
* @returns {boolean} Returns `true` if `target` is found, else `false`.
*/
declare function arrayIncludes(array?: any[], value: any): boolean;