Sha256: 3871fcb880debbee57b1bb887aa07fece0343778248722aeb4cd9168b4ca3807
Contents?: true
Size: 858 Bytes
Versions: 14
Compression:
Stored size: 858 Bytes
Contents
var baseDifference = require('../internal/baseDifference'), baseSlice = require('../internal/baseSlice'); /** * Creates an array excluding all provided values using `SameValueZero` for * equality comparisons. * * **Note:** `SameValueZero` comparisons are like strict equality comparisons, * e.g. `===`, except that `NaN` matches `NaN`. See the * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero) * for more details. * * @static * @memberOf _ * @category Array * @param {Array} array The array to filter. * @param {...*} [values] The values to exclude. * @returns {Array} Returns the new array of filtered values. * @example * * _.without([1, 2, 1, 0, 3, 1, 4], 0, 1); * // => [2, 3, 4] */ function without(array) { return baseDifference(array, baseSlice(arguments, 1)); } module.exports = without;
Version data entries
14 entries across 7 versions & 1 rubygems