@extra-object/drop.min

Removes first n entries.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@extra-object/drop.min
032.2.52 years ago2 years agoMinified + gzip package size for @extra-object/drop.min in KB

Readme

Removes first n entries. :running: :vhs: :package: :moon: :ledger:
Alternatives: drop, drop$.
Similar: take, drop.
This is part of package extra-object.

This is browserified, minified version of @extra-object/drop.
It is exported as global variable objectdrop.
CDN: unpkg
, jsDelivr.

object.drop(x, [n]);
// x: an object
// n: number of entries (1)

const object = require('extra-object');

var x = {a: 1, b: 2, c: 3, d: 4, e: 5};
object.drop(x, 2);
// { c: 3, d: 4, e: 5 }

object.drop(x, 3);
// { d: 4, e: 5 }

references