JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q25654F
  • License MIT

A type-safe utility library for functional programming

Package Exports

  • @zoeykr/function-al

Readme

function-al

: A type-safe utility library for functional programming.


📌 Installation

npm i @zoeykr/function-al

📌 API Reference

Function Description
identity Simply returns its input as-is
unary Transforms a function so that it accepts only a single argument
partial Creates a function with preset initial arguments, returning a new function for remaining inputs.
curry Transforms a function into a curried version, allowing it to be called with arguments one at a time or in groups, until all arguments are provided.
pipe Combines multiple functions into a single function, applying them sequentially from left to right.
spreadArgs Converts an array of arguments into separate function parameters.
gatherArgs Transforms multiple arguments into an array