MCPcopy Index your code
hub / github.com/reactide/reactide / insertSorted

Function insertSorted

lib/file-tree.js:29–37  ·  view source on GitHub ↗
(fileOrDir, filesOrDirs)

Source from the content-addressed store, hash-verified

27};
28
29function insertSorted(fileOrDir, filesOrDirs) {
30 // for (var i = 0; i < filesOrDirs.length; i++) {
31 // for (var j = 0; j < fileOrDir.name.length; j++) {
32 // if (fileOrDir.name[j] > filesOrDirs[i].name[j]) break;
33 // else if (fileOrDir.name[j] < filesOrDirs[i].name[j]) filesOrDirs.splice(i, 0, fileOrDir);
34 // }
35 // }
36 filesOrDirs.push(fileOrDir);
37}
38
39function init() {
40 projInfo.htmlPath = '';

Callers 1

recurseThroughFileTreeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected