Skip to content

Commit 37f67e6

Browse files
authored
Merge pull request #2181 from vsemozhetbyt/patch-7
Mention arr.flat()/arr.flatMap() in 1.5.5
2 parents 95016bc + 7b70f79 commit 37f67e6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,8 @@ These methods are the most used ones, they cover 99% of use cases. But there are
755755

756756
- [arr.copyWithin(target, start, end)](mdn:js/Array/copyWithin) -- copies its elements from position `start` till position `end` into *itself*, at position `target` (overwrites existing).
757757

758+
- [arr.flat(depth)](mdn:js/Array/flat)/[arr.flatMap(fn)](mdn:js/Array/flatMap) create a new flat array from a multidimensional array.
759+
758760
For the full list, see the [manual](mdn:js/Array).
759761

760762
From the first sight it may seem that there are so many methods, quite difficult to remember. But actually that's much easier.

0 commit comments

Comments
 (0)