array of objects array.from javascript return undefined code example Example: number to array js const arrayOfDigits = numToSeparate.toString().split("");