yafu
TypeScript icon, indicating that this package has built-in type declarations

2.1.4 • Public • Published

yafu

Yet another functional utility.

Purpose

yafu is a functional programming library that supplies basic useful functions for JavaScript programming. Very similar to Ramda but with a slightly different philosophy.

Key points:

  • curry works a bit differently than in many other JavaScript libraries, specifically when it is the case that a curried function receives more agruments than it has declared
  • each function really only does one thing and one thing only
  • no checking of types inside functions
  • no varardic funtions
  • no inspection of arguments (exception is the curry function)
  • no return of null or undefined

The idea is to be strict on these rules for the sake of being strict. This in order to see if a library like this results in better code in applications and programs where it is used.

API

For now, check the lib folder for the available functions. Each file should contain documentation. Files starting with underscore are private functions and not a part of the public API.

Dependencies (1)

Dev Dependencies (21)

Package Sidebar

Install

npm i yafu

Weekly Downloads

2,309

Version

2.1.4

License

MIT

Unpacked Size

278 kB

Total Files

144

Last publish

Collaborators

  • theludd