Bassline
Bassline is a JavaScript library that exposes two primary types, maybe
and either
. The maybe
type may be used to model an optional value.
The constructor functions nothing
and just
create a maybe
.
The either
type is used to represent values with two possibilities.
The constructor functions left
and right
create such values.
Installation
-
Install Bassline with NPM
npm install bassline
Getting Started: Hello World
var bassline = just = basslinejust; console; $ node hellojsHello World