Module

x/lodash_es/mod.ts>drop

lodash for deno use
Latest
function drop
import { drop } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/mod.ts";

Creates a slice of array with n elements dropped from the beginning.

Examples

_.drop([1, 2, 3]); // => [2, 3]

_.drop([1, 2, 3], 2); // => [3]

_.drop([1, 2, 3], 5); // => []

_.drop([1, 2, 3], 0); // => [1, 2, 3]

Parameters

array

The array to query.

n
guard