I want to convert the following string '14 2' into an array of two integers. How can I do it ?
'14 2'
A quick one for modern browsers:
'14 2'.split(' ').map(Number); // [14, 2]`
1.4m articles
1.4m replys
5 comments
57.0k users