SyntaxFix
Write A Post
Hire A Developer
Questions
Yet another solution if Object.entries won't work for you.
Object.entries
const obj = {_x000D_ '1': 29,_x000D_ '2': 42_x000D_ };_x000D_ const arr = Array.from(Object.keys(obj), k=>[`${k}`, obj[k]]);_x000D_ console.log(arr);