Releases: blakeembrey/js-functools
Releases · blakeembrey/js-functools
Memoize One
Added
- Add
memoizeOne
utility
New Functional Utilities
Added
debounce
andtrailing
configuration tofunctools.throttle
functools.always
functools.add
functools.subtract
functools.multiply
functools.divide
functools.flip
functools.partial
functools.sequence
functools.compose
functools.nary
Fix Throttling
Fixed
- Fix throttling without another pending function enqueued
Throttle
Added
- Add
throttle
function for rate-limiting function executions - Add
memoize0
for memoizing a zero-argument function
Object Function Helpers
Added
- Add
prop
function helper for getting a property on an object (e.g.arr.map(prop('test'))
,sorted(arr, prop('id'))
) - Add
invoke
function 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...