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 3ae693b

Browse files
Update 13. flatMap().js
1 parent de2af14 commit 3ae693b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎7. Array-Methods/13. flatMap().js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ console.log(arr.flatMap((x) => x ** 2));
1212

1313
const arr2 = [1, 2, 34, 5, 6, 67, 7, [23, 4, 5, 5, [, 4, 5, 6, 6]]];
1414
console.log(arr2.flat(2).flatMap((x) => x ** 2));
15+
// [1, 4, 1156, 25, 36, 4489, 49, 529, 16, 25, 25, 16, 25, 36, 36]

0 commit comments

Comments
(0)

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