MCPcopy Create free account
hub / github.com/dabbott/javascript-playgrounds / buildHashString

Function buildHashString

utils/HashString.js:31–37  ·  view source on GitHub ↗
(pairs = {})

Source from the content-addressed store, hash-verified

29}
30
31const buildHashString = (pairs = {}) => {
32 const hs = []
33 for (let key in pairs) {
34 hs.push(`${key}=${encodeURIComponent(pairs[key])}`)
35 }
36 return '#' + hs.join('&')
37}
38
39export const setHashString = (fileMap) => {
40 const multiFile = Object.keys(fileMap).length > 1

Callers 1

setHashStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected