MCPcopy Index your code
hub / github.com/totaljs/framework / parseTerminal2

Function parseTerminal2

utils.js:3819–3834  ·  view source on GitHub ↗
(lines, fn, skip, take)

Source from the content-addressed store, hash-verified

3817};
3818
3819function parseTerminal2(lines, fn, skip, take) {
3820 var indexer = 0;
3821
3822 if (skip === undefined)
3823 skip = 0;
3824 if (take === undefined)
3825 take = lines.length;
3826
3827 for (var i = skip, length = skip + take; i < length; i++) {
3828 var line = lines[i];
3829 if (!line)
3830 continue;
3831 var m = line.match(regexpTERMINAL);
3832 m && fn(m, indexer++, length, i);
3833 }
3834}
3835
3836function parseDateFormat(format, val) {
3837

Callers 1

utils.jsFile · 0.85

Calls 1

fnFunction · 0.70

Tested by

no test coverage detected