ids_nn
["50348", "18646", "17963", "18184", "30703", "18016", "23225"]
How do I make it:
[50348, 18646, 17963, 18184, 30703, 18016, 23225]
I read these two SO posts:
How to convert all elements in an array to integer in JavaScript?
convert string into array of integers
So, I tried:
var bla = ids_nn.map(function (x) { return parseInt(x, 10})
VM4765:2 Uncaught SyntaxError: Unexpected token }message: "Unexpected token }"stack: (...)get stack: function () { [native code] }set stack: function () { [native code] }__proto__: ErrorVM3550:847 InjectedScript._evaluateOnVM3550:780 InjectedScript._evaluateAndWrapVM3550:646 InjectedScript.evaluate
and
var bla = ids_nn.split(',').map(Number)
VM4648:2 Uncaught TypeError: undefined is not a function