isNotNull()
isNotNull()
isNotNull()const isNotNull = <Type, Payload extends object = object>(
value: Type,
callback: ResultCallback<Type, Payload> = resultCallback,
payload?: Payload
): value is Never<null, Type> =>
callback(typeOf(value) !== 'null' && value !== null, value, payload);Generic type variables
Type
TypePayloadextendsobject=object
Payloadextendsobject=objectParameters
value: Type
value: Typecallback: ResultCallback<Type, Payload>
callback: ResultCallback<Type, Payload>payload?: Payload
payload?: PayloadReturn type
value is Never<null, Type>
value is Never<null, Type>Returns
Example usage
Last updated