score:2

Accepted answer
myArray.sort(function(a, b){return b.createdAt - a.createdAt});
var newestObject = myArray[0]
newestObject["new_field"] = "New Data"
myArray[0] = newestObject

Related Query

More Query from same tag