function withoutAll
withoutAll<T>(array: readonly T[],values: readonly T[]): T[]Returns an array excluding all given values.
Examples
Example 1
Example 1
import { withoutAll } from "@std/collections/without_all"; import { assertEquals } from "@std/assert/assert_equals"; const withoutList = withoutAll([2, 1, 2, 3], [1, 2]); assertEquals(withoutList, [3]);
Type Parameters
TParameters
Return Type
T[]