Pattern Matching in JavaScript | OKKY