SyntaxFix
Write A Post
Hire A Developer
Questions
I ended up solving it as follows:
const n = 123456789;_x000D_ let toIntArray = (n) => ([...n + ""].map(Number));_x000D_ console.log(toIntArray(n));