Have ideas to improve npm?Join in the discussion! »

    yafu

    1.1.1 • 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.

    Keywords

    none

    Install

    npm i yafu

    DownloadsWeekly Downloads

    401

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    74.4 kB

    Total Files

    39

    Last publish

    Collaborators

    • avatar