I\'m stuck how i sum two object like this:
obj1 = { \'over_due_data\': 10, \'text_data\': 5 } obj2 = { \'over_due_data\': 20, \'text_data\': 5 } <
you can code it dynamically :
var resultObject={}; Object.keys(obj1).forEach(function(objectKey, index) { resultObject[objectKey]= obj1 [objectKey]+obj2[objectKey]; });