@extra-array/pop-update.min

Removes last value.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@extra-array/pop-update.min
1622.10.19a year ago3 years agoMinified + gzip package size for @extra-array/pop-update.min in KB

Readme

Removes last value. :package: :smileycat: :running: :vhs: :moon: :scroll: :newspaper: :bluebook:
Alternatives: pop, pop$.
Similar: push, pop, shift, unshift.

This is part of package extra-array.

This is browserified, minified version of @extra-array/pop-update.
It is exported as global variable arraypop$.
CDN: unpkg
, jsDelivr.



array.pop$(x);
// x: an array (updated)

const array = require("extra-array");

var x = [1, 2, 3];
array.pop$(x);
// [ 1, 2 ]

x;
// [ 1, 2 ]

var x = [1, 2, 3, 4];
array.pop$(x);
// [ 1, 2, 3 ]



References