UNPKG

182 BJavaScriptView Raw
1const REGEX_DEV = /(Development|Local Testnet)$/;
2export function isTestChain(chain) {
3 if (!chain) {
4 return false;
5 }
6 return !!REGEX_DEV.test(chain.toString());
7}