4 ms·
The article mentions using the Number constructor, which is even more elegant: > ["1","2","3"].map(Number) [ 1, 2, 3 ]
by athenot 3y ago
The article mentions using the Number constructor, which is even more elegant:
> ["1","2","3"].map(Number)
[ 1, 2, 3 ]