Javascript Array column(k)

Description

Javascript Array column(k)


Array.prototype.column = function (k) {
  return this.map (function (t) { return k ? eval ("t." + k) : t; });
};



PreviousNext

Related