how to convert an array like object to array code example Example: number to array js const arrayOfDigits = numToSeparate.toString().split("");