without
Import from @varavel/vdl-plugin-sdk/utils/arrays.
Creates an array that excludes all specified values.
It correctly excludes NaN, as it compares values using SameValueZero.
Type Parameters
| Type Parameter | Description |
|---|---|
T |
The type of elements in the array. |
Parameters
| Parameter | Type | Description |
|---|---|---|
array |
readonly T[] |
The array to filter. |
...values |
T[] |
The values to exclude. |
Returns
T[]
A new array without the specified values.