MCPcopy Create free account
hub / github.com/subquery/subql / lowerCaseFirst

Function lowerCaseFirst

packages/cli/src/utils/networkFamily.ts:6–6  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

4import {NETWORK_FAMILY, runnerMapping} from '@subql/common';
5
6const lowerCaseFirst = (str: string) => str.charAt(0).toLowerCase() + str.slice(1);
7
8function isNetwork(network: string): network is NETWORK_FAMILY {
9 return !!network && lowerCaseFirst(network) in NETWORK_FAMILY;

Callers 2

isNetworkFunction · 0.85
getNetworkFamilyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected