Skip to main content
variable take
import { take } from "https://deno.land/x/30_seconds_of_typescript@v1.0.1/util.ts";

Returns an array with n elements removed from the beginning.

Use Array.prototype.slice() to create a slice of the array with n elements taken from the beginning.

type

(arr: any[], n?) => unknown