Javascript Array reorder(mapping)

Description

Javascript Array reorder(mapping)


Array.prototype.reorder = function (mapping) {
  return mapping.map(index => this[index])
}



PreviousNext

Related