2.0.2 • Published 8 months ago

@pacote/shuffle v2.0.2

Weekly downloads
58
License
MIT
Repository
github
Last release
8 months ago

@pacote/shuffle

version minified minified + gzip

An implementation of the Durstenfeld algorithm for shuffling collections.

Installation

yarn add @pacote/shuffle

Usage

import { shuffle } from '@pacote/shuffle'

shuffle([1, 2, 3])

shuffle<T>(items: T[]): T[]

shuffle() takes an item sequence and returns a randomly permutated sequence of its elements.

License

MIT © Luís Rodrigues.

2.0.2

8 months ago

2.0.1

1 year ago

2.0.0

1 year ago

1.0.12

2 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago