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