UNPKG

wat

Version:

Community-controlled cheat sheets for every coder.

12 lines (8 loc) 179 B
## .pop() Removes the last element from an array and returns it. ```js let arr = [1, 2, 3, 4, 5]; var result = arr.pop(); // result: 5 // arr: [1, 2, 3, 4] ```