Ad
Code
Diff
  • const power = Math.pow
    • const power = (num, exp) => !exp ? 1 : new Array(exp).fill(num).reduce((a , b) => a * b)
    • const power = Math.pow