(id: any, state: any, triggerKey: string)
| 30 | * @returns |
| 31 | */ |
| 32 | export function getAllPMCIds(id: any, state: any, triggerKey: string) { |
| 33 | const keysOfIds = keys(id); |
| 34 | const idKey = keysOfIds.join(','); |
| 35 | return state.paths.objs[idKey] |
| 36 | .map((obj: any) => |
| 37 | keysOfIds.reduce((acc, key, i) => { |
| 38 | acc[key] = obj.values[i]; |
| 39 | return acc; |
| 40 | }, {} as any) |
| 41 | ) |
| 42 | .filter((obj: any) => |
| 43 | equals(dissoc(triggerKey, obj), dissoc(triggerKey, id)) |
| 44 | ); |
| 45 | } |
| 46 | |
| 47 | /** |
| 48 | * Replace the pattern matching ids with the actual trigger value |
no test coverage detected
searching dependent graphs…