error: string|Error = 'input is not an optional string'
Returns assertsinputisstring|undefined
Example
assertIsOptionalString('hello'); // does not throw assertIsOptionalString(undefined); // does not throw assertIsOptionalString(42); // throws TypeError: input is not an optional string
Assert that
inputis a string orundefined.