A feature-complete JavaScript library for currying and uncurrying functions with infinite and lazy evaluation support.
omg-curry is a JavaScript library that provides advanced currying and uncurrying utilities for functional programming. It transforms fixed-arity functions into curried versions that accept arguments incrementally, and supports infinite currying and lazy evaluation for flexible and efficient argument handling.
JavaScript developers working with functional programming patterns, especially those building libraries, utilities, or applications that benefit from partial application and controlled argument evaluation.
Developers choose omg-curry for its feature completeness, including infinite currying, lazy evaluation, and bidirectional transformations between curried and fixed functions, offering more control and flexibility than basic currying implementations.
Curry All Code
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Supports converting fixed-arity functions to curried versions and back via fixed and deCurry methods, enabling flexible function composition as shown in the usage examples.
Allows creation of curried functions that accept unlimited arguments until explicitly terminated, useful for dynamic and flexible argument handling in functional pipelines.
Offers lazy curry option that defers evaluation until all arguments are supplied, optimizing performance for complex or expensive operations, as detailed in the operators section.
Includes multiple methods like fixed, op, and deCurry with configurable arity and lazy flags, which can be confusing without prior functional programming expertise.
README provides basic examples but lacks in-depth guides on error handling, edge cases, TypeScript support, or real-world use cases beyond simple snippets.
Primarily targets developers deep into functional programming, making it less practical for general-purpose or mixed-paradigm codebases where simpler alternatives exist.