- ifTypeOf<T, R>(
typeName: TypeOfTypes,
value: unknown,
trueFunction: (value: T) => R,
isFunction?: (value: T) => boolean,
): undefined | R Parameters
- typeName: TypeOfTypes
- value: unknown
- trueFunction: (value: T) => R
Optional
isFunction: (value: T) => boolean
Returns undefined | R