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

Method flatten

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

Source from the content-addressed store, hash-verified

14274 return del
14275 }
14276 static flatten(arr) {
14277 if (arr.flat) return arr.flat()
14278 return arr.reduce((acc, val) => acc.concat(val), [])
14279 }
14280 static escapeBackTicks(str) {
14281 return str.replace(/\`/g, "\\`").replace(/\$\{/g, "\\${")
14282 }

Callers 2

.datatables.jsFile · 0.80

Calls 1

concatMethod · 0.80

Tested by

no test coverage detected