@extra-object/shift.min

Removes first entry.

Downloads in past

Stats

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

Readme

Removes first entry. :running: :vhs: :package: :moon: :ledger:
Alternatives: shift, shift$.
This is part of package extra-object.

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

object.shift(x);
// x: an object

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

var x = {a: 1, b: 2, c: 3};
object.shift(x);
// { b: 2, c: 3 }

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

references