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

Method omit

daily/ydyp.js:213–215  ·  view source on GitHub ↗
(e = {}, t = [])

Source from the content-addressed store, hash-verified

211 return null === t || t === Object.prototype
212 }
213 static omit(e = {}, t = []) {
214 return Array.isArray(t) || (t = [t.toString()]), t.forEach(t => r.unset(e, t)), e
215 }
216 static pick(e = {}, t = []) {
217 Array.isArray(t) || (t = [t.toString()]);
218 const r = Object.entries(e).filter(([e, r]) => t.includes(e));

Callers

nothing calls this directly

Calls 2

forEachMethod · 0.80
unsetMethod · 0.80

Tested by

no test coverage detected