sinful.js
sinful.js copied to clipboard
Add Array.sorter, Array.prototype.shuffle, Array.prototype.shuffle_only ...
...utilities
Hello, added a new Array utility Array.sorter, (with associated test) that creates (and returns) a sorter that can do multi-sub-sorting by multiple (and nested) keys each ascending or descending independantly
Added Array.prototype.shuffle, which shuffles an array using Fisher-Yates unbiased shuffling
Added Array.prototype.shuffle_only which shuffles only part of array (by included indices) and is a variatiion of Fisher-Yates unbiased shuffling