You can use the Array.prototype.map
like this:
revenues = this.revenues.map(r => ({quantity: r.quantity}));
The Array.prototype.map
will take each item of your revenues
array and you can transform it before returning it.
The map() method creates a new array with the results of calling a
provided function on every element in the calling array.
So if you want for example double each quantity and add or rename some fields, you can do like below:
revenues = this.revenues.map(r => ({quantity: r.quantity, quantity2: r.quantity * 2}));