Skip to content

Commit 556c079

Browse files
committed
정답 제출
1 parent 1b0e81d commit 556c079

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
*/
44
function reverseArray(arr) {
55
// 여기에 코드를 작성하세요.
6+
return arr
7+
.map((item) => (Array.isArray(item) ? reverseArray(item) : item))
8+
.reverse();
69
}
710

811
module.exports = reverseArray;

0 commit comments

Comments
 (0)