To run the tests made for these functions: - clone this repository - run npm intall in the command line - run npm test in the command line
The Lodash functional library Sprint involves reimplementing a JS library as if you were its author. For Part 1 of this sprint, reimplement the following methods:
These are the core functions to get finished;
- identity
- first
- last
- each
- indexOf
- filter
- reject
- uniq
- map
- contains
These are a little harder but will be very beneficial to try and complete.
- pluck
- reduce
- every
- some
- extends
- defaults
- once
- memoize
- shuffle
- invoke
- sortBy (NB the Underscore library uses the native JavaScript sort but feel free to use your sort algorithm!)
- zip
- sortedIndex
- flatten
- intersection
- difference
- indexOf (again, this time with a binary search)
- throttle
- delay