MCPcopy
hub / github.com/jquery/esprima / map

Function map

test/3rdparty/angular-1.2.5.js:677–683  ·  view source on GitHub ↗
(obj, iterator, context)

Source from the content-addressed store, hash-verified

675
676
677function map(obj, iterator, context) {
678 var results = [];
679 forEach(obj, function(value, index, list) {
680 results.push(iterator.call(context, value, index, list));
681 });
682 return results;
683}
684
685
686/**

Callers 1

orderByFilterFunction · 0.70

Calls 2

pushMethod · 0.80
forEachFunction · 0.70

Tested by

no test coverage detected