This is a project I completed as a student at Hack Reactor. This project was worked on with a pair. The project is a minimal functional library for javascript, similar to underscore or lodash.:
- _.first()
- _.last()
- _.each()
- _.indexOf()
- _.filter()
- _.reject()
- _.uniq()
- _.map()
- _.pluck()
- _.reduce()
- _.contains()
- _.every()
- _.some()
- _.shuffle()
- _.sortBy()
- _.zip()
- _.flatten()
- _.intersection()
- _.difference()
- _.invoke()
- _.extend()
- _.defaults()
- _.once()
- _.memoize()
- _.delay()
- _.shuffle()
- _.throttle()
Some code may be written in ES6 and may require to be transpiled in order to be tested.
ES6 enabled on chrome chrome://flags/#enable-javascript-harmony.
Babeljs.io for transipiling.
Tests are made with the Mocha testing framework. Test are located in the ./spec directory. To run the Just open the spec runner file with chrome.
SpecRunner.html