|
|
|
|
|
by andyfleming
3117 days ago
|
|
For anyone wondering why this is, it's because parseInt takes two arguments "string" and "radix". Map calls a function with "currentValue", "index", and "array". So the calls essentially look like this: parseInt("1", 0, arrayReference) // => 1
parseInt("2", 1, arrayReference) // => NaN
parseInt("3", 2, arrayReference) // => NaN
|
|