Skip to content

isFunction: difference with lodash #947

@rejetto

Description

@rejetto

hi, isFunction in lodash is also working as "type guard", meaning that typescript knows that inside an if(isFunction(f)) then "f" is a function.
This is not happening with 'es-toolkit/compat'.

I'm going to just replace it with typeof f === 'function', but you may want to consider it to get 100% compatibility.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions