Skip to content

bastienmichaux/myx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

myx

Random JS utility stuff

myx-contracts

Dead-simple, functional typing contracts.

Usage

// without type checking
const add = (n1, n2) => n1 + n2;

// with type checking
const T = require('myx.contracts');
const add = (n1, n2) => T.number(n1) && T.number(n2) && (n1+n2);

About

Random JS utility stuff

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published