Functional programming library in JavaScript.
npm install @7urtle/lambdaFunctional programming library in JavaScript.
!npm
!NpmLicense
!npm bundle size (minified)
!npm bundle size (minified + gzip)
* Get Started
* Learn Functional Programming
* Functional programming advantages
* Functional programming basics
* Managing side effects with monads
* Effortless testing
* API Documentation
* About
Lambda was created to allows us to embrace functional programming in JavaScript. It focuses on providing highly
performant code which is itself built using functional paradigms. Provided functions are simple, curried, pure
and optimised for partial application and function composition.
Learn JavaScript Functional Programming
To use with Node.js:
```
$ npm install --save @7urtle/lambda
Require @7urtle/lambda in Node.js:
`
const L = require('@7urtle/lambda');
L.log('Hello world!');
`
Import @7urtle/lambda in Node.js:
`
import * as L from '@7urtle/lambda';
L.log('Hello world!');
`
Or import just specific functions:
`
import {log, upperCaseOf, compose} from '@7urtle/lambda';
const hello = compose(log, upperCaseOf);
hello('Hello World');
// => HELLO WORLD
`
Get the minified version from GitHub: lambda.min.js
`
`
Or use public CDN: https://www.jsdelivr.com/package/npm/@7urtle/lambda.
`
``
Try @7urtle/lambda with online playground using CodePen.

Made with contributors-img.
* Added a build for browsers and CDNs.
* Library type changed to module using ESM imports/exports. Still supports require and UMD through webpack/babel build.
* Optimizations for tree-shakeability of the library for both ESM and CJS.
* Declaring Node support from version 12.16 (current node is 17.4.0, LTS is 16.13.2, and AWS Lambda defaults to node 14).
* These changes were heavily tested with different configurations. However, if you encounter any issues, please report them on GitHub.