(body)
| 175 | } |
| 176 | |
| 177 | function 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 | |
| 190 | function getName(node) { |
| 191 | // Throwing on export { EVENTS } ¯\_(ツ)_/¯ |
no outgoing calls
no test coverage detected