const instead of let
This commit is contained in:
parent
f567d0703b
commit
f3b61dd922
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ export const shuffle = (
|
|||
/** @type Rng */ rng,
|
||||
array
|
||||
) => {
|
||||
let arr = array.slice()
|
||||
const arr = array.slice()
|
||||
for (let i = 0; i <= arr.length - 2; i++)
|
||||
{
|
||||
const j = randomInt(rng, i, arr.length -1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue