The array data is
[{
"Date": "2018-03-20",
"Total": "10,459"
}, {
"Date": "2018-03-21",
"Total": "11,947"
}, {
"Date": "2018-03-22",
"Total": "12,932",
}];
And I need to be like this:
[{
"Date": "2018-03-20",
"Total": "10459"
}, {
"Date": "2018-03-21",
"Total": "11947"
}, {
"Date": "2018-03-22",
"Total": "12932",
}];
.replace(). For the record, this is a good example of why we save integers as actual integers instead of some language based string, since doing that would avoid this entire problem. ( and probably other problems not asked about )