MCPcopy Create free account
hub / github.com/nodejs/node / map

Function map

deps/v8/test/wasm-js/third_party/testharness.js:3533–3543  ·  view source on GitHub ↗
(array, callable, thisObj)

Source from the content-addressed store, hash-verified

3531 }
3532
3533 function map(array, callable, thisObj)
3534 {
3535 var rv = [];
3536 rv.length = array.length;
3537 for (var i = 0; i < array.length; i++) {
3538 if (array.hasOwnProperty(i)) {
3539 rv[i] = callable.call(thisObj, array[i], i, array);
3540 }
3541 }
3542 return rv;
3543 }
3544
3545 function extend(array, items)
3546 {

Callers 4

WindowTestEnvironmentFunction · 0.70
testharness.jsFile · 0.70
substituteFunction · 0.70
make_domFunction · 0.70

Calls 2

hasOwnPropertyMethod · 0.45
callMethod · 0.45

Tested by

no test coverage detected