MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / toPath

Method toPath

daily/ydyp.js:224–226  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

222 return Array.isArray(t) || (t = r.toPath(t)), t.slice(0, -1).reduce((e, r, o) => Object(e[r]) === e[r] ? e[r] : e[r] = /^\d+$/.test(t[o + 1]) ? [] : {}, e)[t[t.length - 1]] = o, e
223 }
224 static toPath(e) {
225 return e.replace(/\[(\d+)\]/g, ".$1").split(".").filter(Boolean)
226 }
227 static unescape(e) {
228 const t = {
229 "&": "&",

Callers 3

getMethod · 0.80
setMethod · 0.80
unsetMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected