Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

last element array

if (!Array.prototype.last){
    Array.prototype.last = function(){
        return this[this.length - 1];
    };
};
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #element #array
ADD COMMENT
Topic
Name
6+6 =