MCPcopy Create free account
hub / github.com/nodejs/node / numberLength

Function numberLength

test/fixtures/snapshot/typescript.js:122836–122836  ·  view source on GitHub ↗
(num)

Source from the content-addressed store, hash-verified

122834 if (distinctFiles.length === 0)
122835 return "";
122836 var numberLength = function (num) { return Math.log(num) * Math.LOG10E + 1; };
122837 var fileToErrorCount = distinctFiles.map(function (file) { return [file, ts.countWhere(filesInError, function (fileInError) { return fileInError.fileName === file.fileName; })]; });
122838 var maxErrors = fileToErrorCount.reduce(function (acc, value) { return Math.max(acc, value[1] || 0); }, 0);
122839 var headerRow = ts.Diagnostics.Errors_Files.message;

Callers 1

Calls 1

logMethod · 0.45

Tested by

no test coverage detected