What is the shortest way of creating an array consisting of digits from a number?
I don't want to revert to declaring an empty array and then iterating over the number via the for(a,b,c)
loop.
I would like something more declarative. Ideally, something like:
Array.from(143) // => [1, 4, 3]