(network: string)
| 6 | const lowerCaseFirst = (str: string) => str.charAt(0).toLowerCase() + str.slice(1); |
| 7 | |
| 8 | function isNetwork(network: string): network is NETWORK_FAMILY { |
| 9 | return !!network && lowerCaseFirst(network) in NETWORK_FAMILY; |
| 10 | } |
| 11 | |
| 12 | // can be either lowerCased or UpperCased |
| 13 | export function getNetworkFamily(network: string): NETWORK_FAMILY { |
no test coverage detected