Files
Henry Whitaker ea5808047f Tweaked gitignore
gitignore removed all composer and npm files, so automated builds would fail
2020-04-12 21:24:03 +01:00

15 lines
266 B
JavaScript
Vendored

'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;
};