MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / serialOrdered

Function serialOrdered

out/cli.cjs:24532–24547  ·  view source on GitHub ↗
(list, iterator2, sortMethod, callback)

Source from the content-addressed store, hash-verified

24530 module2.exports.ascending = ascending;
24531 module2.exports.descending = descending;
24532 function serialOrdered(list, iterator2, sortMethod, callback) {
24533 var state2 = initState(list, sortMethod);
24534 iterate(list, iterator2, state2, function iteratorHandler(error, result) {
24535 if (error) {
24536 callback(error, result);
24537 return;
24538 }
24539 state2.index++;
24540 if (state2.index < (state2["keyedList"] || list).length) {
24541 iterate(list, iterator2, state2, iteratorHandler);
24542 return;
24543 }
24544 callback(null, state2.results);
24545 });
24546 return terminator.bind(state2, callback);
24547 }
24548 function ascending(a4, b7) {
24549 return a4 < b7 ? -1 : a4 > b7 ? 1 : 0;
24550 }

Callers 1

serialFunction · 0.85

Calls 2

iterateFunction · 0.85
callbackFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…