I have an object as
const details = {
firstName: "Priya",
age: 26,
class: 12,
Address: "UP",
lastName: "Kumari"
}
Can I position the "lastName" key just after the "firstName" so that the new created object is :
const updated = {
firstName: "Priya",
lastName: "Kumari",
age: 26,
class: 12,
Address: "UP"
}
I tried few methods but read that positioning of object items is not possible