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

Returns all elements in an array except for the first one.

Return Array.prototype.slice(1) if the array's length is more than 1, otherwise, return the whole array.

type

(arr: any[]) => unknown