I have an array of strings like [\'2\', \'10\', \'11\'] and was wondering what\'s the most efficient way of converting it to an integer array. Should I just loo
[\'2\', \'10\', \'11\']
The simplest way to parse int from string is adding a + sign before:
var res = ['1', '2', '3'].map(function(v){return +v})