Lets us easier compare if a operation code was successful. Unfortunately have to use deepEqual since object comparison is by reference..
Usage:
if (deepEqual(someOperation, SUCCESS))
vs
if (someOperation === new WalletError(WalletErrorCode.SUCCESS))
Generated using TypeDoc
Lets us easier compare if a operation code was successful. Unfortunately have to use deepEqual since object comparison is by reference..
Usage:
vs