error: string|Error = 'input is not an optional boolean'
Returns assertsinputisboolean|undefined
Example
assertIsOptionalBoolean(true); // does not throw assertIsOptionalBoolean(undefined); // does not throw assertIsOptionalBoolean('true'); // throws TypeError: input is not an optional boolean
Assert that
inputis a boolean orundefined.