without
Filters out the elements of an array that have one of the specified values.
- Use
Array.prototype.includes()
to find values to exclude. - Use
Array.prototype.filter()
to create an array excluding them.
Filters out the elements of an array that have one of the specified values.
Array.prototype.includes()
to find values to exclude.Array.prototype.filter()
to create an array excluding them.