Advertisement
PadmaJS

Untitled

Feb 28th, 2021
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.09 KB | None | 0 0
  1. pop() {
  2. const [x, ...rest] = this.list;
  3. this.list = rest;
  4. return x;
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement