Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/zh/object/hasownproperty.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ JavaScript **不会**保护 `hasOwnProperty` 被非法占用,因此如果一
foo.hasOwnProperty('bar'); // 总是返回 false

// 使用其它对象的 hasOwnProperty,并将其上下为设置为foo
{}.hasOwnProperty.call(foo, 'bar'); // true
({}).hasOwnProperty.call(foo, 'bar'); // true

###结论

Expand Down