I have a javascript object which consists of key-value pairs, I want to insert a key-value pair at a certain location, In the below example I want to insert it after the first key-value pair.
var obj = {key1: "value1", key2: "value2"};
console.log(obj);// {key1: "value1", key2: "value2"}
obj.key3 = "value3";
console.log(obj);// {key1: "value1", key2: "value2", key3: "value3"}