Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pop() {
- const [x, ...rest] = this.list;
- this.list = rest;
- return x;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement