I just want to know if those 2 statements are equals or not, JS makes me mad and its behavior remain too esoteric. Within my app, it occurs some strange results ...
value in item
and item.hasOwnProperty(value)
Thanks in advance
I just want to know if those 2 statements are equals or not, JS makes me mad and its behavior remain too esoteric. Within my app, it occurs some strange results ...
value in item
and item.hasOwnProperty(value)
Thanks in advance
in
also looks up the prototype tree while hasOwnProperty
only checks the object itself.