Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fathym_common/src/src.deps.ts>withoutAll

The Fathym Reference Architecture provides the common foundation for applications built in Typescript.
Go to Latest
function withoutAll
import { withoutAll } from "https://deno.land/x/fathym_common@v0.0.141/src/src.deps.ts";

Returns an array excluding all given values.

Examples

Example 1

import { withoutAll } from "https://deno.land/std@0.224.0/collections/without_all.ts";
import { assertEquals } from "https://deno.land/std@0.224.0/assert/assert_equals.ts";

const withoutList = withoutAll([2, 1, 2, 3], [1, 2]);

assertEquals(withoutList, [3]);

Parameters

array: readonly T[]
values: readonly T[]