import { includesSlice } from "https://deno.land/x/ayonli_jsext@v0.9.72/array/index.ts";
Checks if the array contains another array as a slice of its contents.
Examples
Example 1
Example 1
import { includesSlice } from "@ayonli/jsext/array";
const arr = [1, 2, 3, 4, 5];
console.log(includesSlice(arr, [2, 3, 4])); // true
console.log(includesSlice(arr, [2, 4, 3])); // false