MCPcopy Create free account
hub / github.com/dataease/SQLBot / hardMixProtos

Function hardMixProtos

frontend/public/swagger-ui-bundle.js:45761–45789  ·  view source on GitHub ↗
(s, o, i = [])

Source from the content-addressed store, hash-verified

45759 const i = Object.getPrototypeOf(s)
45760 return null === i ? o : protoChain(i, [...o, i])
45761 },
45762 hardMixProtos = (s, o, i = []) => {
45763 var a
45764 const u =
45765 null !==
45766 (a = ((...s) => {
45767 if (0 === s.length) return
45768 let o
45769 const i = s.map((s) => protoChain(s))
45770 for (; i.every((s) => s.length > 0); ) {
45771 const s = i.map((s) => s.pop()),
45772 a = s[0]
45773 if (!s.every((s) => s === a)) break
45774 o = a
45775 }
45776 return o
45777 })(...s)) && void 0 !== a
45778 ? a
45779 : Object.prototype,
45780 _ = Object.create(u),
45781 w = protoChain(u)
45782 for (let o of s) {
45783 let s = protoChain(o)
45784 for (let o = s.length - 1; o >= 0; o--) {
45785 let a = s[o]
45786 ;-1 === w.indexOf(a) && (copyProps(_, a, ['constructor', ...i]), w.push(a))
45787 }
45788 }
45789 return ((_.constructor = o), _)
45790 },
45791 unique = (s) => s.filter((o, i) => s.indexOf(o) == i),
45792 getIngredientWithProp = (s, o) => {

Callers 1

MixinFunction · 0.85

Calls 5

protoChainFunction · 0.85
copyPropsFunction · 0.85
createMethod · 0.65
mapMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected