Narrows an unknown value to an AnyFunction if it is type-compatible, or raises an error otherwise.
unknown
AnyFunction
The value to test.
Optional
The error message to use if value is not type-compatible.
value
UnexpectedValueTypeError If the value was undefined.
Narrows an
unknown
value to anAnyFunction
if it is type-compatible, or raises an error otherwise.