Returns an array excluding all given values.
The type of the array elements.
The array to exclude values from.
The values to exclude from the array.
A new array containing all elements from the given array except the ones that are in the values array.
import { withoutAll } from "@std/collections/without-all";import { assertEquals } from "@std/assert";const withoutList = withoutAll([2, 1, 2, 3], [1, 2]);assertEquals(withoutList, [3]); Copy
import { withoutAll } from "@std/collections/without-all";import { assertEquals } from "@std/assert";const withoutList = withoutAll([2, 1, 2, 3], [1, 2]);assertEquals(withoutList, [3]);
Returns an array excluding all given values.