Implement these Underscore.js Methods
- First - http://underscorejs.org/#first
- Last - http://underscorejs.org/#last
- Uniq - http://underscorejs.org/#uniq
- Pluck - http://underscorejs.org/#pluck
- Contains - http://underscorejs.org/#contains
How to tackle this assignment
- Fork and Clone the repo and then run npm install to make sure you pull in Chai.
- First, start with some research, make sure you know exactly what these five functions do before you try to implement them on your own.
- The "describe" and "it" blocks have been written for you, so start by writing the appropriate tests that match what is inside the "it" block.
- Once your tests are written, try to write a function that makes the test pass.
Bonus
Implement the function flatten - http://underscorejs.org/#flatten - you will need to use recursion to solve this.