Javascript jquery.each是否检查hasOwnProperty?

Javascript jquery.each是否检查hasOwnProperty?,javascript,jquery,hasownproperty,Javascript,Jquery,Hasownproperty,我已经浏览了jquery源代码,但仍然不确定。jQuery.each是否检查hasOwnProperty 如果我用for..in循环一个对象,我需要检查。我一直认为使用jquery时不需要检查..不,jquery.each不检查hasOwnProperty,正如您在本期中看到的:

我已经浏览了jquery源代码,但仍然不确定。jQuery.each是否检查hasOwnProperty


如果我用for..in循环一个对象,我需要检查。我一直认为使用jquery时不需要检查..

不,jquery.each不检查hasOwnProperty,正如您在本期中看到的: