Update article.md

This commit is contained in:
Salomon Dion 2017-06-20 18:25:54 +00:00 committed by GitHub
parent 2a0516d174
commit 24fcd39c06

View file

@ -229,7 +229,7 @@ alert( arr.includes(1) ); // true
Note that the methods use `===` comparison. So, if we look for `false`, it finds exactly `false` and not the zero. Note that the methods use `===` comparison. So, if we look for `false`, it finds exactly `false` and not the zero.
If we wan to check for inclusion, and don't want to know the exact index, then `arr.includes` is preferred. If we want to check for inclusion, and don't want to know the exact index, then `arr.includes` is preferred.
### find and findIndex ### find and findIndex