Skip to content

Commit 60209e6

Browse files
authored
👾 just add another one missed break line
1 parent a85e802 commit 60209e6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,7 @@ These methods are the most used ones, they cover 99% of use cases. But there are
746746
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.
747747

748748
We can use `every` to compare arrays:
749+
749750
```js run
750751
function arraysEqual(arr1, arr2) {
751752
return arr1.length === arr2.length && arr1.every((value, index) => value === arr2[index]);

0 commit comments

Comments
 (0)