4 ms·
> Most browsers can do a for..in. At least for me there is no browser in existence that I care about that doesn't have that :) then why are you using the under
by cwmma 12y ago
> Most browsers can do a for..in. At least for me there is no browser in existence that I care about that doesn't have that :)
then why are you using the underscore/lodash/jquery method, it's main advantage (besides working on array like objects) is compatibility for older browsers..
I'm, btw, on your side here and just use Object.keys and move on for objects and use a while loop for array like objects.
- BinaryIdiot 12y ago> then why are you using the underscore/lodash/jquery method, it's main advantage (besides working on array like objects) is compatibility for older browsers.. Oh I'm not my point was it's not really necessary anymore. It's been so long since browsers didn't have support for these kinds of things I can't imagine the compatibility is that important anymore except in say corporate environments.