js peta tambahkan properti
array.map(x => ({
...x,
c: Number(x.a) - Number(x.b)
}))
Lucas Juan
array.map(x => ({
...x,
c: Number(x.a) - Number(x.b)
}))