UNPKG

@dulysse1/better-node

Version:

Improve Node types & add object properties

11 lines (10 loc) 205 B
try { Object.defineProperty(global.Array.prototype, "last", { value: function () { return this.length ? this[this.length - 1] : undefined; }, }); } catch (error) { void 0; } module.exports = {};