MCPcopy Create free account
hub / github.com/DHTMLX/gantt / map

Function map

samples/common/codehighlight/codemirror.js:241–245  ·  view source on GitHub ↗
(array, f)

Source from the content-addressed store, hash-verified

239 function lst(arr) { return arr[arr.length-1] }
240
241 function map(array, f) {
242 var out = [];
243 for (var i = 0; i < array.length; i++) { out[i] = f(array[i], i); }
244 return out
245 }
246
247 function insertSorted(array, value, score) {
248 var pos = 0, priority = score(value);

Callers 4

shiftDocFunction · 0.85
codemirror.jsFile · 0.85
normalizeKeyMapFunction · 0.85
applyTextInputFunction · 0.85

Calls 1

fFunction · 0.85

Tested by

no test coverage detected