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

Returns an array with n elements removed from the end.

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

type

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