for in should be used when iterating over keys of some object. I'm fixing this because server was crashing when I had own Array.prototype methods. Other option to iterate over array is for of but it would not work, becasue you need to be able to use delete. Below patch fixed my issues.
for in
should be used when iterating over keys of some object. I'm fixing this because server was crashing when I had own Array.prototype methods. Other option to iterate over array isfor of
but it would not work, becasue you need to be able to usedelete
. Below patch fixed my issues.