Z Pattern Matching Z Versions Save

Pattern Matching for Javascript

v1.0.3

6 years ago

Horray, z is now official! There are a LOT of improvements and changes

v0.0.6

7 years ago

now z match strings:

'test'.matches(
    (x = 'testa') => false,
    (x = 'test') => true,
    (x = 'testo') => false,
    function otherwise () { return false }
).should.equal(true)

v0.0.5

8 years ago
  • Pattern matching
  • Pattern matching with value comparison (ES6 w/ default parameters only)
  • Helper methods: head, init, last, tail