fixed examples
This commit is contained in:
parent
ca51f5ca88
commit
46b1c06039
|
@ -33,7 +33,7 @@ Browser Example
|
|||
// The shuffle modifies the original array
|
||||
// calling a.slice(0) creates a copy, which is assigned to b
|
||||
b = window.knuthShuffle(a.slice(0));
|
||||
console.log();
|
||||
console.log(b);
|
||||
});
|
||||
```
|
||||
|
||||
|
@ -56,7 +56,7 @@ npm install -S knuth-shuffle
|
|||
// The shuffle modifies the original array
|
||||
// calling a.slice(0) creates a copy, which is assigned to b
|
||||
b = shuffle(a.slice(0));
|
||||
console.log();
|
||||
console.log(b);
|
||||
});
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue