MCPcopy Create free account
hub / github.com/FSGModding/FSG_Mod_Assistant / countOthers

Function countOthers

test/tests/packagestat.js:23–31  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

21}
22
23const countOthers = (arr) => {
24 return {
25 blank : 0,
26 code : 0,
27 comment : 0,
28 size : arr.map((x) => x.size).reduce((total, x) => total + x, 0),
29 total : arr.length,
30 }
31}
32
33const countTextFile = (fileList, isJS = false) => {
34 return fileList.reduce((total, x) => {

Callers 1

countFilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected