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

Method arrayToMap

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

Source from the content-addressed store, hash-verified

14466 return picked
14467 }
14468 static arrayToMap(arr) {
14469 const map = {}
14470 arr.forEach(val => (map[val] = true))
14471 return map
14472 }
14473 static _replaceNonAlphaNumericCharactersWithCharCodes(str) {
14474 return str
14475 .replace(/[^a-zA-Z0-9]/g, sub => {

Callers 2

pickMethod · 0.80
getOptionsMethod · 0.80

Calls 1

forEachMethod · 0.80

Tested by

no test coverage detected