update snippets 0-All
This commit is contained in:
committed by
Agamemnon Zorbas
parent
39164e9cbf
commit
e7e687f60c
@ -13,7 +13,10 @@ const shuffle = ([...arr]) => {
|
||||
}
|
||||
return arr;
|
||||
};
|
||||
// const foo = [1,2,3]
|
||||
// shuffle(foo) -> [2,3,1]
|
||||
// console.log(foo) -> [1,2,3]
|
||||
```
|
||||
|
||||
```js
|
||||
const foo = [1,2,3]
|
||||
shuffle(foo) // [2,3,1]
|
||||
console.log(foo) // [1,2,3]
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user