CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes45downloads
without.js32 linesDownload Raw Back to lodash-es
1import baseDifference from './_baseDifference.js';2import baseRest from './_baseRest.js';3import isArrayLikeObject from './isArrayLikeObject.js';4 5/**6 * Creates an array excluding all given values using7 * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)8 * for equality comparisons.9 *10 * **Note:** Unlike `_.pull`, this method returns a new array.11 *12 * @static13 * @memberOf _14 * @since 0.1.015 * @category Array16 * @param {Array} array The array to inspect.17 * @param {...*} [values] The values to exclude.18 * @returns {Array} Returns the new array of filtered values.19 * @see _.difference, _.xor20 * @example21 *22 * _.without([2, 1, 2, 3], 1, 2);23 * // => [3]24 */25var without = baseRest(function(array, values) {26  return isArrayLikeObject(array)27    ? baseDifference(array, values)28    : [];29});30 31export default without;32 
basant307/AI_Governance_Project · CoolFace