2.0.0 • Published 5 years ago

pure-fun v2.0.0

Weekly downloads
6
License
MIT
Repository
github
Last release
5 years ago

Installing

npm install pure-fun
yarn add pure-fun

Usage

import PureFun from 'pure-fun';
const mapArr = PureFun.arrays.getMappedArray({ key: 'value' });

import { arrays } from 'pure-fun';
const rnd = arrays.pickRandom([1, 2, 3])

import sleep from 'pure-fun/async';
(async () => {
  await sleep(1000);
  console.log('Slept 1s')
})();

Development

The dev env for this is Node LTS/latest with ESM (import/export) syntax as a standard. Typescript is used to ensure type safety + documentation Linting is done with eslint and testing with jest.

You can run tests locally with npm t. Every PR also builds on Travis CI under these circumstances.

2.0.0

5 years ago

1.14.0

5 years ago

1.13.0

6 years ago

1.12.0

6 years ago

1.9.0

6 years ago

1.8.2

6 years ago

1.8.1

6 years ago

1.8.0

6 years ago

1.7.0

6 years ago

1.5.0

7 years ago

1.4.0

7 years ago

1.3.3

7 years ago

1.3.2

7 years ago

1.3.1

7 years ago

1.0.0

7 years ago