2 * A specialized version of `_.includesWith` for arrays without support for
3 * specifying an index to search from.
6 * @param {Array} array The array to search.
7 * @param {*} target The value to search for.
8 * @param {Function} comparator The comparator invoked per element.
9 * @returns {boolean} Returns `true` if `target` is found, else `false`.
11 function arrayIncludesWith(array, value, comparator) {
13 length = array.length;
15 while (++index < length) {
16 if (comparator(value, array[index])) {
23 module.exports = arrayIncludesWith;