@fabiochiquezi/functional-ts
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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

/@fabiochiquezi/functional-ts/

    Package Sidebar

    Install

    npm i @fabiochiquezi/functional-ts

    Weekly Downloads

    3

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    11 kB

    Total Files

    10

    Last publish

    Collaborators

    • fabiochiquezi