Skip to content

Commit a50171f

Browse files
committed
docs(oop): edit prototype/instanceof typo
1 parent d4deebb commit a50171f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/oop/prototype.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ d instanceof Object // true
282282

283283
上面代码中,`d`同时是`Date``Object`的实例,因此对这两个构造函数都返回`true`
284284

285-
由于任意对象(除了`null`)都是`Object`的实例,所以`instanceof`运算符可以判断一直是否为非`null`的对象。
285+
由于任意对象(除了`null`)都是`Object`的实例,所以`instanceof`运算符可以判断一个值是否为非`null`的对象。
286286

287287
```javascript
288288
var obj = { foo: 123 };

0 commit comments

Comments
 (0)