Ad
Code
Diff
  • const returnInputNumber = (n = 0) => {
      return +n || 0
    };
    • const returnInputNumber = (n = 0) => {
    • return typeof n === "number" ? n : 0;
    • return +n || 0
    • };