Json – How to split object key and convert it into array of object?
i'm facing issue to convert object into array of object. i'm having object like, const employeeDetails = { "admin-name": "deepak", "admin-age": "29", "tester-name": "raju", "tester-age": "26", }; i'm expecting format like, const employeeDetails = [ { _id: "admin", name: "deepak",…