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.
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.