fp-option-ref

Installation
SKILL.md

Option Quick Reference

Option = value that might not exist. Some(value) or None.

Create

import * as O from 'fp-ts/Option'

O.some(5)              // Some(5)
O.none                 // None
O.fromNullable(x)      // null/undefined → None, else Some(x)
O.fromPredicate(x > 0)(x) // false → None, true → Some(x)

Transform

Installs
2
GitHub Stars
9
First Seen
14 days ago
fp-option-ref — whatiskadudoing/fp-ts-skills