Skip to content

fabiochiquezi/Chz-Library-FunctionalTS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Functional TS

A simple library with the core of Functional Programming for TS. See more in the documentation at chiquezi.com/libraries/functional-ts

Note: So far I have only build the pipe functions. I am building as far I need in my projects

🚀 Getting Started

For now I just built up pipe functions:

// Install
yarn add @fabiochiquezi/functional-ts or npm install @fabiochiquezi/functional-ts

// Usage
import * as fns from '@fabiochiquezi/functional-ts'

📡 Example

import { asyncPipe } from '@fabiochiquezi/functional-ts'

const sum1 = async (num) = await num + 1
const sum2 = async (num) = await num + 2
const sum3 = async (num) = await num + 3

asyncPipe(0, sum1, sum2, sum3) // 6

✋ Author

Releases

No releases published

Packages

No packages published