assert-args

Validate and format function arguments ( handles types and optionals)

pfn

Possible Function. Wraps what might be a function, with fallback behavior in case it’s not. Perfect for use in functions that accept optional callback arguments.

optional-args

Wraps a function whose last argument is preceded by optional arguments so that when fewer arguments are passed in, missing optional arguments are filled in as `undefined`.

arguer

Normalizes arguments for JavaScript functions with optional arguments and provides optional typing.