Returns a copy of the array with all instances of the values removed. === is used for the equality test
移除数组中不需要的值,值的数量可以是N
_.without([1, 2, 1, 0, 3, 1, 4], 0, 1);
=> [2, 3, 4]
源码:
_.without = function(array) {
return _.difference(array, slice.call(arguments, 1));
};