Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit aada2ad

Browse files
Merge pull request #766 from YuraGB/YuraGB-patch-1
Translate explanation about NaN in array methods
2 parents 6964d80 + a06014a commit aada2ad

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
@@ -274,7 +274,7 @@ const arr = [NaN];
274274
alert( arr.indexOf(NaN) ); // -1 (повинен бути 0, але === перевірка на рівність не працює з NaN)
275275
alert( arr.includes(NaN) );// true (вірно)
276276
```
277-
That's because `includes` was added to JavaScript much later and uses the more up to date comparison algorithm internally.
277+
Це пов’язано з тим, що метод `includes` був доданий до JavaScript значно пізніше і використовує більш сучасний алгоритм порівняння.
278278
````
279279
280280
### find і findIndex/findLastIndex

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /