how toi get array of=f elements from an object code example
Example 1: javascript object to array
//ES6 Object to Array
const numbers = {
one: 1,
two: 2,
};
console.log(Object.values(numbers));
// [ 1, 2 ]
console.log(Object.entries(numbers));
// [ ['one', 1], ['two', 2] ]
Example 2: number to array js
const arrayOfDigits = numToSeparate.toString().split("");