eggheadio-github / stack-overflow-copy-paste

Utility functions copy/pasted (and modified slightly) from Stack Overflow
441 stars 606 forks source link

Add a 'descendingOrder' function #208

Closed RickBr0wn closed 5 years ago

RickBr0wn commented 5 years ago

Hi Kent. Many thanks for all the content that you put out, and for creating this project.

I would like to suggest a 'descending order' function and use it like:

const num= 527631948
const orderedNumber = descendingOrder(num)  //  returns 987654321