MCPcopy Index your code
hub / github.com/csev/py4e / map

Function map

tools/pythonauto/static/codemirrorepl/codemirror.js:6964–6968  ·  view source on GitHub ↗
(array, f)

Source from the content-addressed store, hash-verified

6962 }
6963 if ([].indexOf) indexOf = function(array, elt) { return array.indexOf(elt); };
6964 function map(array, f) {
6965 var out = [];
6966 for (var i = 0; i < array.length; i++) out[i] = f(array[i], i);
6967 return out;
6968 }
6969 if ([].map) map = function(array, f) { return array.map(f); };
6970
6971 function createObj(base, props) {

Callers 2

shiftDocFunction · 0.70
codemirror.jsFile · 0.70

Calls 1

fFunction · 0.50

Tested by

no test coverage detected