Skip to content

Commit 0997611

Browse files
committed
字符串翻转
1 parent 98e0d9b commit 0997611

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

字符串翻转.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
function str(s) {
2+
return s.split(" ").map(res => {
3+
res.reverse().join('')
4+
}).join(" ")
5+
}

0 commit comments

Comments
 (0)