mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 09:47:48 +00:00
Bump to v4.14.0.
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
import baseDifference from './_baseDifference.js';
|
||||
import baseRest from './_baseRest.js';
|
||||
import isArrayLikeObject from './isArrayLikeObject.js';
|
||||
import rest from './rest.js';
|
||||
|
||||
/**
|
||||
* Creates an array excluding all given values using
|
||||
* [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
|
||||
* for equality comparisons.
|
||||
*
|
||||
* **Note:** Unlike `_.pull`, this method returns a new array.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 0.1.0
|
||||
@@ -20,7 +22,7 @@ import rest from './rest.js';
|
||||
* _.without([2, 1, 2, 3], 1, 2);
|
||||
* // => [3]
|
||||
*/
|
||||
var without = rest(function(array, values) {
|
||||
var without = baseRest(function(array, values) {
|
||||
return isArrayLikeObject(array)
|
||||
? baseDifference(array, values)
|
||||
: [];
|
||||
|
||||
Reference in New Issue
Block a user