Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 557 Bytes

without.md

File metadata and controls

33 lines (21 loc) · 557 Bytes

arrays.without

without(array, values)

Without, returns an array with all values parameters removed from the input array

Arguments

  1. array (Array): input array
  2. values (...*): input values

Returns

(Array): an array of unique values

Example

const result = arrays.without(['a', 'b', 'c', ['d']], 'b', ['d']);
console.log(result);
> ['a', 'c', ['d']]