Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

does jquery.each check for hasOwnProperty?

I've browsed the jquery source, but I am still unsure. Does jQuery.each check for hasOwnProperty or does it not?

if I loop over an object with for..in, I need to check. I allways thought I don't need to check when using jquery..

like image 300
Christian Avatar asked May 15 '26 18:05

Christian


1 Answers

No, jQuery.each does not check hasOwnProperty as you can see at this issue: http://bugs.jquery.com/ticket/5499

like image 199
Leonardo Calzavara Avatar answered May 17 '26 07:05

Leonardo Calzavara



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!