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

Method mapValues

external/.scrollLibs.js:14480–14486  ·  view source on GitHub ↗
(object, fn)

Source from the content-addressed store, hash-verified

14478 .replace(/^([0-9])/, "number$1")
14479 }
14480 static mapValues(object, fn) {
14481 const result = {}
14482 Object.keys(object).forEach(key => {
14483 result[key] = fn(key)
14484 })
14485 return result
14486 }
14487 static javascriptTableWithHeaderRowToObjects(dataTable) {
14488 dataTable = dataTable.slice()
14489 const header = dataTable.shift()

Callers

nothing calls this directly

Calls 2

fnFunction · 0.85
forEachMethod · 0.80

Tested by

no test coverage detected