node-powertools
Advanced tools
Comparing version
{ | ||
"name": "node-powertools", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "Powerful assistive functions for Node and Browser environments.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -68,2 +68,8 @@ <p align="center"> | ||
### powertools.cahnce(chance, options) | ||
Generate a random number between 0 and 100. If the random number is less than or equal to `chance`, return `true`. Otherwise, return `false`. You can use `options` to supply a sign or randomize the sign as well. | ||
```js | ||
powertools.chance(0.5); // Possible output: true | ||
``` | ||
### powertools.arrayify(input) | ||
@@ -70,0 +76,0 @@ Transform the `input` into an array if it is not already. |
52037
0.6%386
1.58%