UNPKG

@julo-ui/function-utils

Version:

Function Utilities across Julo UI package

22 lines (20 loc) 380 B
/** * Helper to check value is a function * * @param value - any datatype value * * @returns true - if datatype of value is a "function" * * @returns false - if datatype of value is not a "function" * * @example * ```js * * const a = '' * * isFn(a) // return false * * ``` */ declare function isFn(value: unknown): value is Function; export { isFn as default };