patcom is a pattern-matching JavaScript library. Build pattern matchers from simpler, smaller matchers. Pattern-matching uses declarative programming. The code matches the shape of the data.