Simple functional functions common to any development in Typescript or JavaScript.
Go to file
2022-02-05 18:15:27 +01:00
dist Update format 2022-02-05 18:14:35 +01:00
src Update format 2022-02-05 18:14:35 +01:00
Makefile Update format 2022-02-05 18:14:35 +01:00
README.md Update README.md 2022-02-05 18:15:27 +01:00

fnTools

Simple functional functions common to any development in Typescript or JavaScript.

  • inc: Increase the value of a number.
  • dec: Decrease the value of a number.
  • range: Returns an array with a sequence.
  • uniqValuesArray: Creates a duplicate-free version of an array.
  • cloneJSON: Clone JSON.
  • updateJSON: Returns a JSON with an updated value.

Example

import * as fn from 'fnTools'

fn.range(4);
// [0, 1, 2, 3, 4]

Compile

Install Typescript

npm install -g typescript

And build.

make build

Check 'dist' folder.