Post
Here was my solution: Array.prototype.last = function () { if (this.length === 0) return -1; return this[this.length - 1]; }; (4/5) #JavaScript #DSA #LeetCode
0 reposts0 likes
Here was my solution: Array.prototype.last = function () { if (this.length === 0) return -1; return this[this.length - 1]; }; (4/5) #JavaScript #DSA #LeetCode
0 reposts0 likes