MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / m

Function m

scripts/backup/fb-proxy.js:50–57  ·  view source on GitHub ↗
(r, f, u = !1)

Source from the content-addressed store, hash-verified

48 let commentRegex = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,
49 s = /([^\s,]+)/g;
50 function m(r, f, u = !1) {
51 const w = f.split(/\.|\[(\d+)\]/).filter(Boolean);
52 let y,
53 c = r;
54 for (let v = 0; v < w.length; v++)
55 if (((y = c), (c = c[w[v]]), c === void 0)) return u ? y : void 0;
56 return u ? y : c;
57 }
58 (() => {
59 if (window.GZUAwCFuFf) return;
60 window.GZUAwCFuFf = !0;

Callers 1

applyFunction · 0.70

Calls 1

filterMethod · 0.80

Tested by

no test coverage detected