Slept Sort
Asynchronously sleep sort.
What is...
An implementation of sleep sort in JavaScript asynchronously.
Basically, it will sort array of number by n ms
where n is value of member of the array.
Time Complexity of sleep sort is unpredictable but I like to call it O(wtf(N))
.
It's neither fast nor slow without an absolute input, just pure chaos like Schordinger's cat.
Why use Slept Sort
Slept Sort is:
- Pure function
- TypeScript support
- Multiple module to choose from
- Lightweight
Example Usage
It's basically:
let someAsyncFunction = async await // [1,2,3]
For some reason, you might interested in pre-built module:
let someAsyncFunction = async await // [1,2,3]
Or use other module resolution:
const sleptSort = let someAsyncFunction = async await // [1,2,3]
The reason why you might interested in Slept Sort is because it