meow-sort
v1.0.4
Published
Random Sorting your Array or Object to Array with any Element type.
Downloads
9
Readme
Meow-Sort [randomSortJS]
Github Page : https://github.com/pikpokjeon/meowSort NPM PAGE :https://www.npmjs.com/package/meow-sort Random Sorting your Array's any type of Element or Object's Values
UPDATE - 15/11/22 : Fixed issue.
HOW TO USE
Array
import {meowSort} from 'meow-sort'
const orderedArray = [1, 2, 3, [4, 5, 6], 7, 8, 9, [10, 11], 13], 14
const randomized = meowSort.random(orderedArray)
// [3, [ 10, 11 ], 1, 13, 8, [ 4, 5, 6 ], 7, 2, 9 ]
Object
import {meowSort} from 'meow-sort'
const obj = {1:'A',2:'B',3:['C','D'],4:'E'}
const randomized = meowSort.random(obj)
// [ [ 'C', 'D' ], 'E', 'A', 'B' ]
Contributors
- pikpokjeon
- (welcome to contribute)
Next version plan
- randomize in range