quickselect
quickselect copied to clipboard
A fast selection algorithm in JavaScript.
Cases: K is negative: ``` const quickselect = require('quickselect'); const numbers = [1, 2, 3, 4]; quickselect(numbers, -99999); console.log(numbers); // [ 3, 4, 2, undefined, '-99999': 1 ] ``` K...
Is it possible to release a new version of this package or add a @types/quickselect? It seems that the types are already available but only in the master branch and...
In Node, `require("quickselect")` returns the function `quickselect`, but in Webpack, `require("quickselect")` returns a module `{ default: quickselect }`. This means a `quickselect` dependent can’t be compatible with both environments without...