Bearded Utilities
Because I can
This is a repo that has access to some FP-ish functions. They are all written in ES6+. In order to use this package, you will need to transpose it yourself
API
BeardedUtils
Methods | Arguments | Return |
---|---|---|
curry | fn: Function | function |
map/filter/takeUntil/sort | fn: Function, list: Array | Array |
some/every/includes | val: any, list: Array | Boolean |
indexOf | val: any, list: Array | Number |
tail | list: Array | Array |
curryMethods | obj: Object | Object |
take | num: Number, list: Array | Array |
takeUntil | fn: Function, list: Array | Array |
random | min: number, max: number | number |
curried
This is the same as BeardedUtils
but all methods are curried