Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pull.js 758B

1234567891011121314151617181920212223242526272829
  1. var baseRest = require('./_baseRest'),
  2. pullAll = require('./pullAll');
  3. /**
  4. * Removes all given values from `array` using
  5. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  6. * for equality comparisons.
  7. *
  8. * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`
  9. * to remove elements from an array by predicate.
  10. *
  11. * @static
  12. * @memberOf _
  13. * @since 2.0.0
  14. * @category Array
  15. * @param {Array} array The array to modify.
  16. * @param {...*} [values] The values to remove.
  17. * @returns {Array} Returns `array`.
  18. * @example
  19. *
  20. * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
  21. *
  22. * _.pull(array, 'a', 'c');
  23. * console.log(array);
  24. * // => ['b', 'b']
  25. */
  26. var pull = baseRest(pullAll);
  27. module.exports = pull;