Here is an array of objects that I have:
Object {Results:Array[2]}
Results:Array[2]
[0-1]
0:Object
id=1
name: "Rick"
Value: "34343"
1:Object
id=2
name:'david'
Value: "2332"
In this array, the Value field in each object is a string. I am looking to convert all these values into numbers instead.
The desired final data structure should be like this. Can someone please guide me on how to accomplish this?
Object {Results:Array[2]}
Results:Array[2]
[0-1]
0:Object
id=1
name: "Rick"
Value: 34343
1:Object
id=2
name:'david'
Value: 2332