Merge pull request #2187 from vsemozhetbyt/patch-1

Fix my typos in 1.5.5
This commit is contained in:
Ilya Kantor 2020-11-24 23:04:40 +03:00 committed by GitHub
commit 501adfd7be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -742,8 +742,8 @@ These methods are the most used ones, they cover 99% of use cases. But there are
- [arr.some(fn)](mdn:js/Array/some)/[arr.every(fn)](mdn:js/Array/every) check the array.
The function `fn` is called on each element of the array similar to `map`. If any/all results are `true`, returns `true`, otherwise `false`.
These methods behave sort of like `||` and `&&` operators: if `fn` returns a truthy value, `arr.some()` immediately returns `true` and stops iterating over the rest items; if `fn` returns a falsy value, `arr.every()` immediately returns `false` and stops iterating over the rest items as well.
These methods behave sort of like `||` and `&&` operators: if `fn` returns a truthy value, `arr.some()` immediately returns `true` and stops iterating over the rest of items; if `fn` returns a falsy value, `arr.every()` immediately returns `false` and stops iterating over the rest of items as well.
We can use `every` to compare arrays:
```js run