Check if given number is Armstrong number in Javascript

Javascript program to check Armstrong number

const isArmStrongNumber = (number) => {

     let strNumber = number + '';
     let power = strNumber.length;
     let sum = 0;

     for (let i = 0; i < strNumber.length; i++) {
               sum += Math.pow(Number(strNumber[i]), power); 
     }
   return number === sum;
}

console.log(isArmStrongNumber(153)); //true 1^3+5^3 +3^3 = 153

console.log(isArmStrongNumber(255)); //false