Ad
Code
Diff
  • const isDivisible = (n,a,b, truth = n % a === 0 && n % b === 0) => truth;
    
    • const isDivisible = (n,...args) => args.every(arg => n % arg == 0);
    • const isDivisible = (n,a,b, truth = n % a === 0 && n % b === 0) => truth;