1 | Removes last value.
|
2 | [:package:](https://www.npmjs.com/package/@extra-array/pop-update)
|
3 | [:smiley_cat:](https://github.com/orgs/nodef/packages?repo_name=extra-array)
|
4 | [:running:](https://npm.runkit.com/@extra-array/pop-update)
|
5 | [:vhs:](https://asciinema.org/a/332107)
|
6 | [:moon:](https://www.npmjs.com/package/@extra-array/pop-update.min)
|
7 | [:scroll:](https://unpkg.com/@extra-array/pop-update/)
|
8 | [:newspaper:](https://nodef.github.io/extra-array/)
|
9 | [:blue_book:](https://github.com/nodef/extra-array/wiki/)
|
10 |
|
11 | > Alternatives: [pop], [pop$].<br>
|
12 | > Similar: [push], [pop], [shift], [unshift].
|
13 |
|
14 | > This is part of package [extra-array].
|
15 |
|
16 | [extra-array]: https://www.npmjs.com/package/extra-array
|
17 |
|
18 | <br>
|
19 |
|
20 | ```javascript
|
21 | array.pop$(x);
|
22 | // x: an array (updated)
|
23 | ```
|
24 |
|
25 | ```javascript
|
26 | const array = require("extra-array");
|
27 |
|
28 | var x = [1, 2, 3];
|
29 | array.pop$(x);
|
30 | // [ 1, 2 ]
|
31 |
|
32 | x;
|
33 | // [ 1, 2 ]
|
34 |
|
35 | var x = [1, 2, 3, 4];
|
36 | array.pop$(x);
|
37 | // [ 1, 2, 3 ]
|
38 | ```
|
39 |
|
40 | <br>
|
41 | <br>
|
42 |
|
43 |
|
44 | ## References
|
45 |
|
46 | - [Array.prototype.pop: MDN web docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/pop)
|
47 |
|
48 | [pop]: https://github.com/nodef/extra-array/wiki/pop
|
49 | [pop$]: https://github.com/nodef/extra-array/wiki/pop$
|
50 | [push]: https://github.com/nodef/extra-array/wiki/push
|
51 | [shift]: https://github.com/nodef/extra-array/wiki/shift
|
52 | [unshift]: https://github.com/nodef/extra-array/wiki/unshift
|