(address, world = undefined)
| 7 | }; |
| 8 | |
| 9 | export const getScreenFromAddress = (address, world = undefined) => { |
| 10 | if (address === undefined) return world; |
| 11 | const { colour, number } = address; |
| 12 | const screen = colour.screens[number]; |
| 13 | return screen; |
| 14 | }; |
| 15 | |
| 16 | export const areAddressesEqual = (a, b) => { |
| 17 | if (a.colour !== b.colour) return false; |
no outgoing calls
no test coverage detected