MCPcopy Create free account
hub / github.com/DavidWells/analytics / getReturnStatment

Function getReturnStatment

scripts/docs/parse/index.js:177–188  ·  view source on GitHub ↗
(body)

Source from the content-addressed store, hash-verified

175}
176
177function getReturnStatment(body) {
178 return body.filter((node) => {
179 return node.type === 'ReturnStatement'
180 }).reduce((acc, node) => {
181 const { argument } = node
182 // console.log('argument', argument)
183 if (argument && argument.properties) {
184 acc = acc.concat(argument.properties)
185 }
186 return acc
187 }, [])
188}
189
190function getName(node) {
191 // Throwing on export { EVENTS } ¯\_(ツ)_/¯

Callers 1

getFunctionDetailsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected