I\'m trying to take some data from an existing object and group it into a new one. The problem I am having is checking if the object key exists so I can either create a new
you could retrieve keys from object and iterate through the list and see if the key is exist or not:
var keys=Object.keys(object) for(var i=0;i