Nutritious Pumpkin Meal

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

    1.0.4 • Public • Published

    ts-curry Build Status

    Currying utility for typescript.

    Usage

    The module supports functions of upto the arity of 4 via — curry2 curry3 curry4. For functions having a higher arity its better to refactor the function into smaller functions of lower arity.

    import {curry2} from 'ts-curry'
     
    const func = (a: number, b: Date) => a + b.getDay()
    const curried = curry2(func)
    curried(2, new Date())
    curried(2)(new Date())

    Keywords

    none

    Install

    npm i ts-curry

    DownloadsWeekly Downloads

    2,211

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    126 kB

    Total Files

    7

    Last publish

    Collaborators

    • tusharmathur