You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linux 7b473cfe85f6 5.8.0-1032-gcp fix LICENSE #34~20.04.1-Ubuntu SMP Wed May 19 18:19:35 UTC 2021 x86_64 GNU/Linux
Darwin Kernel Version 20.5.0
What steps will reproduce the bug?
Create test array and console log out the typeof of the iterator to see the result
Sample snippet:
const movies = [
{
title: 'Requiem for a Dream',
duration: 128
}
]
function iteratorType(array) {
for (let i in array) {
console.log(typeof i)
}
}
iteratorType(movies)
How often does it reproduce? Is there a required condition?
Every time. Conditions: An array with at least one value.
Version: v12.16.1, v15.14.0 (tested)
Platform(s) (tested):
What steps will reproduce the bug?
Create test array and console log out the
typeofof the iterator to see the resultSample snippet:
How often does it reproduce? Is there a required condition?
Every time. Conditions: An array with at least one value.
What is the expected behavior?
The iterator should be
typeofnumber.What do you see instead?
A typeof of 'string' is returned