Closed ThomasOrlita closed 6 months ago
Love it! :D
However, the array needs to be sorted so the longest strings go first, otherwise it yields suboptimal results.
shortboost('kcal') === 'k㎈' // should be '㎉"
Awesome! Thanks for taking a look and taking the time to make the PR.
Seems cool with me, merge incoming ;)
Love it! :D
However, the array needs to be sorted so the longest strings go first, otherwise it yields suboptimal results.