I have an array of objects. I want to multiply GDPAnn
by 10**6
.
var Annual = [{"Date":1998,"Value":4.5,"GDPAnn":9062800},{"Date":1999,"Value":4.8,"GDPAnn":9631200},{"Date":2000,"Value":4.1,"GDPAnn":10251000},{"Date":2001,"Value":1,"GDPAnn":10581900}]
The code below returns only transformed GDPAnn. I want the similar array as above within transformed values of GDPAnn.
Annual.map((o) => o.GDPAnn * 10**6)