KollPotato / evrico

Option and Result for JavaScript and TypeScript developers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Evrico

Option and Result types for JavaScript and TypeScript developers.

Examples

import { O, pipe } from "evrico"

pipe(
    O.some(5),
    O.map(x => x * 2),
    console.log // Some(10)
) 

pipe(
    O.none,
    O.map(x => x * 2),
    console.log // None
) 

Inspired by fp-ts

About

Option and Result for JavaScript and TypeScript developers.

License:MIT License


Languages

Language:TypeScript 100.0%