We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Removes last value.
Alternatives: default, update. Similar: push, pop, shift, unshift.
array.pop(x); // x: an array // --> [value, array]
const array = require('extra-array'); var x = [1, 2, 3]; array.pop(x); // [3, [1, 2]] var x = [1, 2, 3, 4]; array.pop(x); // [4, [1, 2, 3]]