({nodeId, parentsPath = [], accessKey = 'children'}: genNodePathInterface)
| 15 | accessKey?: string |
| 16 | } |
| 17 | function genNodePath({nodeId, parentsPath = [], accessKey = 'children'}: genNodePathInterface) { |
| 18 | let path = parentsPath.concat(nodeId) |
| 19 | let nodePath: Array<Function | string> = [] |
| 20 | path.forEach(id => { |
| 21 | nodePath.push(...[(child: NodeType) => child.id === id, accessKey]) |
| 22 | }) |
| 23 | return nodePath |
| 24 | } |
| 25 | |
| 26 | // Printed url path |
| 27 | function genNodeUrl(nodeProps: any) { |
no outgoing calls
no test coverage detected
searching dependent graphs…