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\']
You can simply use the Number object.
ḷet res = ['2', '10', '11'].map(Number);