Javascript Array where(argument)

Description

Javascript Array where(argument)


// Make the following works

Array.prototype.where = function(argument) {
  return this.filter(item => argument(item));  
};



PreviousNext

Related