0.0.3 • Published 4 months ago

@zoeykr/function-al v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

function-al

: A type-safe utility library for functional programming.

📌 Installation

npm i @zoeykr/function-al

📌 API Reference

FunctionDescription
identitySimply returns its input as-is
unaryTransforms a function so that it accepts only a single argument
partialCreates a function with preset initial arguments, returning a new function for remaining inputs.
curryTransforms 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.
pipeCombines multiple functions into a single function, applying them sequentially from left to right.
composeCombines multiple functions into a single function, applying them sequentially from right to left.
spreadArgsConverts an array of arguments into separate function parameters.
gatherArgsTransforms multiple arguments into an array

🤝 Contributing

Contributions are welcome! 👋
If you have ideas for new utilities, find a bug, or want to improve documentation, feel free to check out the Contributing Guide.

📜 License

This project is licensed under the MIT License.

0.0.3

4 months ago

0.0.2

4 months ago

0.0.1

5 months ago

0.0.0

5 months ago