JSFiddle - React, Tailwind, and code Playground

by luka kupunia

JavaScript

const obj = {
	account: '121212121',
  age: 25
}

const data = []

for(let x in obj) {
	data.push({
  	key: x,
    value: obj[x]
  })
}
console.log(data)