From 35ecef024d038caf0ad4cde20fb9c98716dba71b Mon Sep 17 00:00:00 2001 From: Alexander Zeilmann Date: Thu, 21 Jan 2016 21:21:00 +0100 Subject: [PATCH] Fixes #140 --- README.md | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/README.md b/README.md index 76a9acc6..3f302f2c 100644 --- a/README.md +++ b/README.md @@ -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