Pattern matching
npm install @kozderka/pattern-matchingPackage provides functionality for pattern matching.
npm install @kozderka/pattern-matching
#### Table of Contents
* PatternBuilder
* match
* Parameters
* Examples
Type: Object
#### Parameters
* value V
#### Examples
``javascript
import match from '@kozderka/pattern-matching'
const result = match(1)
.where((value) => value === 1, (value) => '2')
.where(2, (value) => '2')
.where('text', (value) => 'text')
.where(true, (value) => 'true')
.where({a: 1, b:2}, (value) => 'object')
.otherwise((value) => 'otherwise')
.run()
``
Returns PatternBuilder