Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 512 Bytes

pull.md

File metadata and controls

33 lines (21 loc) · 512 Bytes

arrays.pull

pull(array, values)

Pull removes all of the given values from an array

Arguments

  1. array (Array): input array
  2. values (...*): values to be removed from the array

Returns

(Array): array of with values removed

Example

const result = arrays.pull([1, 2, 3, 4], 2, 4);
console.log(result)
> [1, 3]