MCPcopy Create free account
hub / github.com/breck7/scroll / sum

Method sum

external/.scrollLibs.js:14153–14155  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

14151 return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")
14152 }
14153 static sum(arr) {
14154 return arr.reduce((curr, next) => curr + next, 0)
14155 }
14156 static removeNonAscii(str) {
14157 // https://stackoverflow.com/questions/20856197/remove-non-ascii-character-in-string
14158 return str.replace(/[^\x00-\x7F]/g, "")

Callers 7

reduceIndexFunction · 0.80
pnFunction · 0.80
DrFunction · 0.80
xlFunction · 0.80
$lFunction · 0.80
LlFunction · 0.80
OfFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected