MCPcopy Create free account
hub / github.com/nwutils/nw-sample-apps / countTimes

Function countTimes

mini-code-edit/cm/keymap/vim.js:64–67  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

62 for (var i = 0, c = popCount(); i < c; ++i) func(i, i == c - 1);
63 }
64 function countTimes(func) {
65 if (typeof func == "string") func = CodeMirror.commands[func];
66 return function(cm) { iterTimes(function () { func(cm); }) };
67 }
68
69 function iterObj(o, f) {
70 for (var prop in o) if (o.hasOwnProperty(prop)) f(prop, o[prop]);

Callers 1

vim.jsFile · 0.85

Calls 1

iterTimesFunction · 0.85

Tested by

no test coverage detected