How to use pattern matching in JavaScript – an alternative?

What is pattern matching? One less known usage of switch statement in JavaScript which looks a lot like pattern matching. Read more

Similar

Array.prototype.reduce() in JavaScript

This is episode three of the JavaScript Snippet Series. In Episode one, we discussed three methods of getting unique values from JavaScript. In Episode two we discussed some ways to sort arrays in JavaScript. In this article, we will be looking at... (more…)

Read more »