Move spawnSwitchErr to @0xproject/utils

This commit is contained in:
Fabio Berger
2018-06-06 16:26:04 +02:00
parent af1d5fce6e
commit cf8fdd3a70
15 changed files with 24 additions and 25 deletions

View File

@@ -33,9 +33,6 @@ export const utils = {
throw new Error(message);
}
},
spawnSwitchErr(name: string, value: any): Error {
return new Error(`Unexpected switch value: ${value} encountered for ${name}`);
},
isNumeric(n: string): boolean {
return !isNaN(parseFloat(n)) && isFinite(Number(n));
},