Skip to content

😊 A collection of Javascript pure functions/helpers with 0 dependencies

License

Notifications You must be signed in to change notification settings

agerwitz/pure-fun

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pure-fun

😊 A collection of Javascript pure functions/helpers with 0 dependencies

Currently ESM support only, use Babel or @std/esm (node v8+) for Node.

Installing

npm install (--save-dev) pure-fun

Usage

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

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

import sleep from 'pure-fun/async';
const delayedRes = sleep(1000)
  .then(response => console.log(response));

About

😊 A collection of Javascript pure functions/helpers with 0 dependencies

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%