1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-25 11:12:21 +00:00

Merge pull request #546 from m4jing/patch-2

Fixed minor typo
This commit is contained in:
Ruan YiFeng 2017-11-16 18:04:56 +08:00 committed by GitHub
commit a0190b6b98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -583,7 +583,7 @@ i32a.copyWithin(0, 2);
这两个方法都可以接受第二个参数,用来绑定回调函数的`this`对象。 这两个方法都可以接受第二个参数,用来绑定回调函数的`this`对象。
另外,这两个方法都可以发现`NaN`,弥补了数组的`IndexOf`方法的不足。 另外,这两个方法都可以发现`NaN`,弥补了数组的`indexOf`方法的不足。
```javascript ```javascript
[NaN].indexOf(NaN) [NaN].indexOf(NaN)