fixed examples
This commit is contained in:
parent
46b1c06039
commit
e9d34058bd
|
@ -34,7 +34,7 @@ Browser Example
|
|||
// calling a.slice(0) creates a copy, which is assigned to b
|
||||
b = window.knuthShuffle(a.slice(0));
|
||||
console.log(b);
|
||||
});
|
||||
}());
|
||||
```
|
||||
|
||||
Node Example
|
||||
|
@ -57,7 +57,7 @@ npm install -S knuth-shuffle
|
|||
// calling a.slice(0) creates a copy, which is assigned to b
|
||||
b = shuffle(a.slice(0));
|
||||
console.log(b);
|
||||
});
|
||||
}());
|
||||
```
|
||||
|
||||
See Also
|
||||
|
|
Loading…
Reference in New Issue