I'm trying to remove double quotes from a string so it becomes like a number but i'm finding it hard to do.
for ( let i = 0 ; i < this.advanceSaveList.length; i++) {
if (this.advanceSaveList) {
this.advanceSearchSelectedGrades = [this.advanceSaveList[i].properties.gradeIds.replace (/"/g,'')];
}
With the code above the results returns like ["58,59"]
but i want it to return like [58, 59]