I am trying to use reduce to get the sum of these values:
let test = [{foo: 234}, {foo: 122}]; let result = test.reduce((acc, curr) => { return