Latest
function default
import { default } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/src/dropRight.js";

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

Examples

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

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

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

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

Parameters

array

The array to query.

n
guard