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