https://github.com/alepop/compose
📦 A compose function (another one)
https://github.com/alepop/compose
compose functional-programming
Last synced: 5 months ago
JSON representation
📦 A compose function (another one)
- Host: GitHub
- URL: https://github.com/alepop/compose
- Owner: alepop
- Created: 2017-08-30T14:30:41.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-30T14:32:32.000Z (over 8 years ago)
- Last Synced: 2025-08-08T13:32:19.980Z (8 months ago)
- Topics: compose, functional-programming
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@alepop/compose
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# compose
A reusable library implementing function composition.
### npm
```bash
npm install @alepop/compose
```
# usage
```javascript
const compose = require('@alepop/compose');
const fn = compose(
(val) => val * val,
(val) => val + val
);
fn(1) // 4
```