Sha256: caee1b1cdf6ab93c0e0fb8905a202463860ac19553d12d1fbd69c58135aa8f7e

Contents?: true

Size: 763 Bytes

Versions: 153

Compression:

Stored size: 763 Bytes

Contents

var baseDifference = require('../internal/baseDifference'),
    isArrayLike = require('../internal/isArrayLike'),
    restParam = require('../function/restParam');

/**
 * Creates an array excluding all provided values using
 * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
 * for equality comparisons.
 *
 * @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, 3], 1, 2);
 * // => [3]
 */
var without = restParam(function(array, values) {
  return isArrayLike(array)
    ? baseDifference(array, values)
    : [];
});

module.exports = without;

Version data entries

153 entries across 80 versions & 8 rubygems

Version Path
ilog-0.4.1 node_modules/contents/node_modules/lodash/array/without.js
ilog-0.4.1 node_modules/babel-plugin-proto-to-assign/node_modules/lodash/array/without.js
ilog-0.4.1 node_modules/babel/node_modules/lodash/array/without.js
ilog-0.4.0 node_modules/babel/node_modules/lodash/array/without.js
ilog-0.4.0 node_modules/contents/node_modules/lodash/array/without.js
ilog-0.4.0 node_modules/babel-plugin-proto-to-assign/node_modules/lodash/array/without.js
ilog-0.3.3 node_modules/babel/node_modules/lodash/array/without.js
ilog-0.3.3 node_modules/contents/node_modules/lodash/array/without.js
ilog-0.3.3 node_modules/babel-plugin-proto-to-assign/node_modules/lodash/array/without.js
trusty-festivity-extension-2.6.3 node_modules/bower/node_modules/configstore/node_modules/js-yaml/node_modules/argparse/node_modules/lodash/array/without.js
trusty-festivity-extension-2.6.3 node_modules/bower/node_modules/inquirer/node_modules/lodash/array/without.js
trusty-festivity-extension-2.6.2 node_modules/bower/node_modules/configstore/node_modules/js-yaml/node_modules/argparse/node_modules/lodash/array/without.js
trusty-festivity-extension-2.6.2 node_modules/bower/node_modules/inquirer/node_modules/lodash/array/without.js
trusty-festivity-extension-2.6.1 node_modules/bower/node_modules/configstore/node_modules/js-yaml/node_modules/argparse/node_modules/lodash/array/without.js
trusty-festivity-extension-2.6.1 node_modules/bower/node_modules/inquirer/node_modules/lodash/array/without.js
xcodebuild-helper-1.2.5 externals/ios-sim-master/node_modules/lodash/array/without.js
trusty-festivity-extension-2.6 node_modules/bower/node_modules/configstore/node_modules/js-yaml/node_modules/argparse/node_modules/lodash/array/without.js
trusty-festivity-extension-2.6 node_modules/bower/node_modules/inquirer/node_modules/lodash/array/without.js
trusty-festivity-extension-2.5.19 node_modules/bower/node_modules/configstore/node_modules/js-yaml/node_modules/argparse/node_modules/lodash/array/without.js
trusty-festivity-extension-2.5.19 node_modules/bower/node_modules/inquirer/node_modules/lodash/array/without.js