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

Method compactMap

frontend/public/swagger-ui-bundle.js:29402–29411  ·  view source on GitHub ↗
(s, o)

Source from the content-addressed store, hash-verified

29400 return this.map(s, o).reduce((s, o) => s.concat(o), [])
29401 }
29402 compactMap(s, o) {
29403 const i = []
29404 return (
29405 this.forEach((a) => {
29406 const u = s.bind(o)(a)
29407 u && i.push(u)
29408 }),
29409 i
29410 )
29411 }
29412 filter(s, o) {
29413 return (
29414 (s = coerceElementMatchingCallback(s)),

Callers

nothing calls this directly

Calls 3

forEachMethod · 0.95
bindMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected