map(callback, thisp?)

Returns an array of the respective return values of a callback for each entry in this collection.

The given callback receives the value for each entry, the key or index, and the collection itself.

If this collection is an array with holes, those entries will not be visited.

On collections


  • map(callback)
  • map(callback, thisp)