Security update for permissions_by_term
[yaffs-website] / node_modules / uncss / node_modules / lodash / internal / arrayIncludes.js
1 var baseIndexOf = require('./baseIndexOf');
2
3 /**
4  * A specialized version of `_.includes` for arrays without support for
5  * specifying an index to search from.
6  *
7  * @private
8  * @param {Array} array The array to search.
9  * @param {*} target The value to search for.
10  * @returns {boolean} Returns `true` if `target` is found, else `false`.
11  */
12 function arrayIncludes(array, value) {
13   return !!array.length && baseIndexOf(array, value, 0) > -1;
14 }
15
16 module.exports = arrayIncludes;