1.1.3 • Published 3 years ago

matchlib v1.1.3

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

MatchLib

A simple pattern matching library

Getting started

very simple to use:

npm install matchlib

after package installation

import matchlib from 'matchlib';

const option = matchlib(50)(
  [(key) => key === 18, () => `You are young`],
  [(key) => key === 50, () => `You are old`],
  [(key) => key === 6, () => `You are a child`]
)(() => `Not found!`);

console.log(option);
1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago