766a322f46359186de893797ec6647f7e0df1afea747c7f962a5b6dcd13f9236.json 722 B

1
  1. {"ast":null,"code":"/**\n * This function is like `arrayIncludes` except that it accepts a comparator.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludesWith(array, value, comparator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n while (++index < length) {\n if (comparator(value, array[index])) {\n return true;\n }\n }\n return false;\n}\nexport default arrayIncludesWith;","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}