@extra-array/pop-update
v2.10.19
Published
Removes last value.
Downloads
467
Readme
Removes last value. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:
Alternatives: pop, pop$. Similar: push, pop, shift, unshift.
This is part of package extra-array.
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 ]