Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderZeilmann committed Jan 21, 2016
1 parent 580b095 commit 35ecef0
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,22 +47,6 @@ console.log(b);
// [2, 7, 8, 6, 5, 3, 1, 4]
```

Another way of shuffle by [@mvedie](https://github.com/mvedie)

```javascript
function shuffle(array) {
return array.slice(0).sort(function() {
return 0.5 - Math.random();
});
};
```

An Example:
```javascript
var myArray = [1, 2, 3, 3, 4, 5, 6];
shuffle(myArray);
// [4, 3, 5, 1, 2, 3, 6]
```

## #20 - Return objects to enable chaining of functions

Expand Down

0 comments on commit 35ecef0

Please sign in to comment.