Releases: blakeembrey/js-functools
Releases · blakeembrey/js-functools
Memoize One
Added
- Add
memoizeOneutility
New Functional Utilities
Added
debounceandtrailingconfiguration tofunctools.throttlefunctools.alwaysfunctools.addfunctools.subtractfunctools.multiplyfunctools.dividefunctools.flipfunctools.partialfunctools.sequencefunctools.composefunctools.nary
Fix Throttling
Fixed
- Fix throttling without another pending function enqueued
Throttle
Added
- Add
throttlefunction for rate-limiting function executions - Add
memoize0for memoizing a zero-argument function
Object Function Helpers
Added
- Add
propfunction helper for getting a property on an object (e.g.arr.map(prop('test')),sorted(arr, prop('id'))) - Add
invokefunction helper for calling a method on an object (e.g.app.map(invoke('toJSON')))
Initial Release
Humble beginnings. Adding functions as required in TypeScript for working with functions first-class. Not much to see yet...