You're right. I assumed in was slower simply because it has to iterate many levels, but looks like currently V8 knows how to properly optimize the loop. Thanks for pointing out, I'll edit that part.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You're right. I assumed
in
was slower simply because it has to iterate many levels, but looks like currently V8 knows how to properly optimize the loop. Thanks for pointing out, I'll edit that part.