Javascript Array mapValues(value)

Description

Javascript Array mapValues(value)

Array.prototype.mapValues = function(value) { 
    return this.map(function(e) { 
        return e[value] 
    })/*from w w w .  j  a v a  2s .  co m*/
}



PreviousNext

Related