1.1.3 • Published 3 years ago

@nasirbaloch/shuffler v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

shuffler-package

This is the package for any kinds of array shuffler and get a random item of an array.

How to use?

Simply import like this. import shuffle from '@nasirbaloch/shuffler'; then place any kind of array in this. For example.

   import shuffle from '@nasirbaloch/shuffler';


   array1 = [1, 2, 3, 4, 5]
   array2 = ["john doe", "robin", "alexa", "google"];
   array3 = [
              {
                "name": "john",
                "age" : 20
              },
              {
                "name": "robin",
                "age" : 30
              },
              {
                "name": "alexa",
                "age" : 05
              },
          ]
     etc....

//this could be any array. then simple pass array in function. like this.

	shuffle(definedArray); 
// it will return you the shuffled item, you can receive in any variable. And then simply console log that variable.

Thanks 😍

1.1.3

3 years ago

1.1.2

3 years ago

1.0.11

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.0

3 years ago