MCPcopy Index your code
hub / github.com/dataease/SQLBot / proxyMix

Function proxyMix

frontend/public/swagger-ui-bundle.js:45805–45834  ·  view source on GitHub ↗
(s, o = Object.prototype)

Source from the content-addressed store, hash-verified

45803 a++
45804 }
45805 },
45806 proxyMix = (s, o = Object.prototype) =>
45807 new Proxy(
45808 {},
45809 {
45810 getPrototypeOf: () => o,
45811 setPrototypeOf() {
45812 throw Error('Cannot set prototype of Proxies created by ts-mixer')
45813 },
45814 getOwnPropertyDescriptor: (o, i) =>
45815 Object.getOwnPropertyDescriptor(getIngredientWithProp(i, s) || {}, i),
45816 defineProperty() {
45817 throw new Error('Cannot define new properties on Proxies created by ts-mixer')
45818 },
45819 has: (i, a) => void 0 !== getIngredientWithProp(a, s) || void 0 !== o[a],
45820 get: (i, a) => (getIngredientWithProp(a, s) || o)[a],
45821 set(o, i, a) {
45822 const u = getIngredientWithProp(i, s)
45823 if (void 0 === u)
45824 throw new Error('Cannot set new properties on Proxies created by ts-mixer')
45825 return ((u[i] = a), !0)
45826 },
45827 deleteProperty() {
45828 throw new Error('Cannot delete properties on Proxies created by ts-mixer')
45829 },
45830 ownKeys: () =>
45831 s
45832 .map(Object.getOwnPropertyNames)
45833 .reduce((s, o) => o.concat(s.filter((s) => o.indexOf(s) < 0))),
45834 }
45835 ),
45836 vd = null,
45837 _d = 'copy',

Callers 1

MixinFunction · 0.85

Calls 5

getIngredientWithPropFunction · 0.85
concatMethod · 0.80
reduceMethod · 0.45
mapMethod · 0.45
filterMethod · 0.45

Tested by

no test coverage detected