Update README.md
This commit is contained in:
parent
4fa7be30ac
commit
40f92d6e84
@ -5,9 +5,9 @@ Simple functional functions common to any development in Typescript or JavaScrip
|
|||||||
## Example
|
## Example
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
import {getRandom, range} from 'fnTools.js';
|
import {random, range} from 'fnTools.js';
|
||||||
|
|
||||||
getRandom(0, 6);
|
random(0, 6);
|
||||||
// 2
|
// 2
|
||||||
|
|
||||||
range(4);
|
range(4);
|
||||||
@ -27,7 +27,7 @@ npm install micro-fp-tools
|
|||||||
|
|
||||||
- **inc**: Increase the value of a `number`.
|
- **inc**: Increase the value of a `number`.
|
||||||
- **dec**: Decrease the value of a `number`.
|
- **dec**: Decrease the value of a `number`.
|
||||||
- **getRandom**: Returns a random number from a range, with an optional number of decimal places.
|
- **random**: Returns a random number from a range, with an optional number of decimal places.
|
||||||
|
|
||||||
### Array
|
### Array
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user