idea00-shuffle

1.0.1 • Public • Published

idea00-shuffle

Browser Support

![Chrome] ![Firefox] ![Safari] ![Opera] ![Edge] ![IE]
Latest ✔ Latest ✔ Latest ✔ Latest ✔ Latest ✔ 11 ✔

Installing

Package manager

Using npm:

$ npm install idea00-shuffle

Once the package is installed, you can import the library using import or require approach:

import shuffle from 'idea00-shuffle';

console.log(shuffle.shuffle('something'));

If you use require for importing, only default export is available:

const shuffle = require('idea00-shuffle');

console.log(shuffle.shuffle('something'));

CDN

<script src="idea00-shuffle.js"></script>

Usage

const shuffle=require('../lib/index.js');

var data = shuffle.shuffle('abcdefj');
console.log(data);
data = shuffle.shuffle(1234567890);
console.log(data);
data = shuffle.shuffle(undefined);
console.log(data);
data = shuffle.shuffle(null);
console.log(data);
data = shuffle.shuffle(NaN);
console.log(data);
data = shuffle.shuffle({a:1});
console.log(data);
data = shuffle.shuffle(1234567890);
console.log(data);
data = shuffle.shuffle(['a','b',3,5,'c']);
console.log(data);

console.log('-----------------------------------');

data = shuffle.shufflePlus('abcdefj');
console.log(data);

data = shuffle.shufflePlus('abcdefj',[12,3,4,5,6]);
console.log(data);

data = shuffle.shufflePlus(1234567890);
console.log(data);

License

MIT

/idea00-shuffle/

    Package Sidebar

    Install

    npm i idea00-shuffle

    Weekly Downloads

    2

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    5.07 kB

    Total Files

    5

    Last publish

    Collaborators

    • idea00