Merge pull request #828 from 8eni/typo-update-snippet-sample-description

[FIX] Updates typo in 'sample' snippet from 'of' to 'off'
This commit is contained in:
Angelos Chalaris
2018-10-11 15:07:50 +03:00
committed by GitHub

View File

@ -2,7 +2,7 @@
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