Javascript Array first(func)

Description

Javascript Array first(func)

Array.prototype.first = function(func) {
  return this.where(func)[0];
};



PreviousNext

Related