Type assertion function that throws an error if provided value is falsy, and asserts value to a truthy type if no error is thrown.
value to assert.
Optional
used in thrown instance of a MosaicError to make message more understandable on what exactly is falsy.
Generated using TypeDoc
Type assertion function that throws an error if provided value is falsy, and asserts value to a truthy type if no error is thrown.