Closed SukkaW closed 11 months ago
@medikoo
Well, should I bring up Array.shuffle
under _es5_ext
after switch base to ext
branch?
Well, should I bring up Array.shuffle under _es5_ext after switch base to ext branch?
@SukkaW No, it should be implemented in array/shuffle.js
file (_es5_ext
contains items that are to be adapted in ext
but where not yet)
@medikoo The PR is ready for review now.
Unit test cases and the docs are completed.
It appears that the newest mocha (which utilises destructuring assignment syntax) is not compatible with Node.js 4 causes CI to fail.
The PR closes #100, bringing up a side-effect-free, and O(n) array shuffle function.
The unit test is not finished since
tad
is not powerful enough to write a unit test forshuffle
(Help is wanted).P.S. I want to adopt the unit test from https://github.com/philihp/fast-shuffle/blob/master/src/__tests__/index.test.js