Skip to content

pikpokjeon/meowSort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Meow-Sort [randomSortJS]

Github Page : https://github.com/pikpokjeon/meowSort Hits NPM PAGE :https://www.npmjs.com/package/meow-sort Hits 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

About

Random Sorting your Array and Object with any values into Array

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published