Urara-Blog/node_modules/.pnpm-store/v3/files/22/0fe6ad8d85ac940d7d64a72f58b4d0b3ad1e8bb093606f15ebf85866a40f78e7b4e99a418e762236379cc536e21428c87e6464506a0d2b9f7abc26b6bb7a40
2022-08-14 01:14:53 +08:00

17 lines
526 B
Text

var baseIndexOf = require('./_baseIndexOf');
/**
* 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`.
*/
function arrayIncludes(array, value) {
var length = array == null ? 0 : array.length;
return !!length && baseIndexOf(array, value, 0) > -1;
}
module.exports = arrayIncludes;