1.0.0 • Published 4 years ago
@feizheng/next-shuffle v1.0.0
next-shuffle
Shuffle an array.
installation
npm install -S @feizheng/next-shuffle
usage
import '@feizheng/next-shuffle';
//DOCS here!
another solution:
function shuffleUseSort(aArr){
return aArr.sort(function(a, b){
return (0.5 - Math.random());
});
}
resources:
1.0.0
4 years ago