inferred-types 0.53.2 → 0.53.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5070,8 +5070,8 @@ function isFalse(i) {
5070
5070
  function isFalsy(val) {
5071
5071
  return FALSY_VALUES2.includes(val);
5072
5072
  }
5073
- function isFnWithParams(input) {
5074
- return typeof input === "function" && Object.keys(input)?.length > 0;
5073
+ function isFnWithParams(input, ...params) {
5074
+ return params.length === 0 ? typeof input === "function" && input?.length > 0 : typeof input === "function" && input?.length === params.length;
5075
5075
  }
5076
5076
  function isHexadecimal(val) {
5077
5077
  return isString(val) && asChars(val).every((i) => isNumericString(i) || ["a", "b", "c", "d", "e", "f"].includes(i.toLowerCase()));