Write a function that takes a number and returns an array of its digits.

Write a function that takes a number and returns an array of
its digits. So, for 2342 it should return 2,3,4,2