JavaScript Array Explorer is a resource to help figure out what JavaScript array method would be best to use at any given time.
The pattern matching is basically a switch on steroids, you can create powerful conditions such based on Object properties or Array content without manipulating the Object or Array itself.