Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Now that our tests are green and we're satisfied with the overall shape of our final solution, we can do some final refactoring. Using the underrated [tilde operator](http://stackoverflow.com/a/5971668), we can simplify our `seen` increment step and merge it onto the same line as the comparison against `x`. Next, we can leverage some ES6 syntax sugar to consolidate our `filter` lambda onto a single line.
- Loading branch information