Skip to content

Commit 3e81019

Browse files
committed
Fix the usage example
Closes #2
1 parent c5c93bf commit 3e81019

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

readme.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ $ npm install array-shuffle
1313
## Usage
1414

1515
```js
16+
const arrayShuffled = require('array-shuffled');
17+
1618
const shuffled = arrayShuffle([1, 2, 3, 4, 5, 6]);
1719
//=> [3, 5, 4, 1, 2, 6]
1820
```
@@ -23,6 +25,6 @@ const shuffled = arrayShuffle([1, 2, 3, 4, 5, 6]);
2325

2426
#### array
2527

26-
Type: `array`
28+
Type: `Array`
2729

2830
The array to shuffle.

0 commit comments

Comments
 (0)