import { asserts } from "https://deno.land/x/dtils@1.7.0/deps.ts";
const { assertArrayIncludes } = asserts;
Make an assertion that actual
includes the expected
values.
If not then an error will be thrown.
Type parameter can be specified to ensure values under comparison have the same type. For example:
import { assertArrayIncludes } from "./asserts.ts";
assertArrayIncludes<number>([1, 2], [2])