You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
- 'use strict';
-
- module.exports = function pop() {
- if (Array.isArray(this.items)) {
- return this.items.pop();
- }
-
- var keys = Object.keys(this.items);
- var key = keys[keys.length - 1];
- var last = this.items[key];
-
- delete this.items[key];
-
- return last;
- };
|