how to convert number to degets in arry js code example
Example 1: integer to array javascript
Array.from(String(12345), Number);
Example 2: number to array js
const arrayOfDigits = numToSeparate.toString().split("");
Array.from(String(12345), Number);
const arrayOfDigits = numToSeparate.toString().split("");