Skip to content

Commit 5dcdbc3

Browse files
authored
Merge pull request #380 from brentguf/array-methods
Typo Array Methods chapter
2 parents 471de2e + f324d4b commit 5dcdbc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/05-data-types/05-array-methods/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ Note that the methods use `===` comparison. So, if we look for `false`, it finds
229229

230230
If we want to check for inclusion, and don't want to know the exact index, then `arr.includes` is preferred.
231231

232-
Also, a very minor difference of `include` is that it correctly handles `NaN`, unlike `indexOf/lastIndexOf`:
232+
Also, a very minor difference of `includes` is that it correctly handles `NaN`, unlike `indexOf/lastIndexOf`:
233233

234234
```js run
235235
const arr = [NaN];

0 commit comments

Comments
 (0)