Skip to content

Commit

Permalink
문자열 정렬하기(1)
Browse files Browse the repository at this point in the history
  • Loading branch information
dudwns committed Mar 26, 2023
1 parent 8064410 commit 2981753
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Programmers/exam44.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
function solution(my_string) {
return [...my_string]
.filter((s) => !isNaN(s))
.map((v) => +v)
.sort((a, b) => a - b);
}

0 comments on commit 2981753

Please sign in to comment.