I have an array of values such that arr = [108, 109]. I then converted them to a string using arr.toString(), thus getting "108, 109". The reason I did this was because my API required that this parameter arr asked for an array to string conversion. How can I turn this value into an integer?
I tried doing const test = parseInt(arr) but I only get 108. Why is that? I essentially just want the values 108, 109.