I\'d like to sum the values of an object.
I\'m used to python where it would just be:
sample = { \'a\': 1 , \'b\': 2 , \'c\':3 }; summed = sum(sampl
Sum the object key value by parse Integer. Converting string format to integer and summing the values
var obj = { pay: 22 }; obj.pay; console.log(obj.pay); var x = parseInt(obj.pay); console.log(x + 20);