2.0.3 • Published 9 months ago

@pacote/shuffle v2.0.3

Weekly downloads
58
License
MIT
Repository
-
Last release
9 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.3

9 months ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.12

3 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago