Travis build: 637
This commit is contained in:
@@ -2324,7 +2324,7 @@ remove([1, 2, 3, 4], n => n % 2 === 0); // [2, 4]
|
||||
|
||||
Returns a random element from an array.
|
||||
|
||||
Use `Math.random()` to generate a random number, multiply it by `length` and round it of to the nearest whole number using `Math.floor()`.
|
||||
Use `Math.random()` to generate a random number, multiply it by `length` and round it off to the nearest whole number using `Math.floor()`.
|
||||
This method also works with strings.
|
||||
|
||||
```js
|
||||
|
||||
Reference in New Issue
Block a user