1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2025-05-18 12:02:53 +02:00

Add "sort-array-alphabet" challenge

This commit is contained in:
divlo
2020-07-07 14:04:31 +02:00
parent 6a40154d93
commit 565d95079f
7 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,4 @@
# typescript-easy-sort - sort-array-alphabet
Programming language : TypeScript
Created by [@Divlo](https://github.com/Divlo) at 7 July 2020.

View File

@ -0,0 +1,5 @@
function solution (stringsArray: string[]) {
return stringsArray.sort((a, b) => a.localeCompare(b))
}
export default solution