Skip to content

Commit a8259ce

Browse files
committed
Merge pull request BonsaiDen#170 from nkxiaochuan/master
A little bug about the zh branch
2 parents ce5c1f6 + 09d8351 commit a8259ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/zh/object/hasownproperty.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ JavaScript **不会**保护 `hasOwnProperty` 被非法占用,因此如果一
3636
foo.hasOwnProperty('bar'); // 总是返回 false
3737

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

4141
###结论
4242

0 commit comments

Comments
 (0)