const NumberToArray = number => [...`${number}`].map(i => parseInt(i));
      
      Javascript language logo

      Number to array of digits

      Convert given number to array of digits in JavaScript

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.