Skip to content

Releases: blakeembrey/js-functools

Memoize One

05 Feb 19:06
Compare
Choose a tag to compare

Added

  • Add memoizeOne utility

New Functional Utilities

29 Jan 07:15
Compare
Choose a tag to compare

Added

  • debounce and trailing configuration to functools.throttle
  • functools.always
  • functools.add
  • functools.subtract
  • functools.multiply
  • functools.divide
  • functools.flip
  • functools.partial
  • functools.sequence
  • functools.compose
  • functools.nary

Fix Throttling

03 Dec 23:11
Compare
Choose a tag to compare

Fixed

  • Fix throttling without another pending function enqueued

Throttle

03 Dec 02:31
Compare
Choose a tag to compare

Added

  • Add throttle function for rate-limiting function executions
  • Add memoize0 for memoizing a zero-argument function

Object Function Helpers

03 Sep 05:16
Compare
Choose a tag to compare

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

03 Sep 05:14
Compare
Choose a tag to compare

Humble beginnings. Adding functions as required in TypeScript for working with functions first-class. Not much to see yet...