MCPcopy Index your code
hub / github.com/emberjs/ember.js / map

Method map

packages/@ember/array/index.ts:574–574  ·  view source on GitHub ↗

Maps all of the items in the enumeration to another value, returning a new array. This method corresponds to `map()` defined in JavaScript 1.6. The callback method you provide should have the following signature (all parameters are optional): ```javascript function(item, index,

(
    callback: (this: Target, item: T, index: number, arr: this) => U,
    target?: Target
  )

Source from the content-addressed store, hash-verified

572 @public
573 */
574 map<U, Target>(
575 callback: (this: Target, item: T, index: number, arr: this) => U,
576 target?: Target
577 ): NativeArray<U>;

Callers 15

renameEntrypointsFunction · 0.65
packagesFunction · 0.65
walkGlimmerDepsFunction · 0.65
loadFunction · 0.65
handleRollupWarningsFunction · 0.65
libraries.tsFile · 0.65
owner.test.tsFile · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected