Skip to content

Commit 09d8351

Browse files
committed
There is something wrong here,I think
1 parent 2e258af commit 09d8351

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)