- Install dependencies:
yarn install
yarn run file <filename>
Example: yarn run file src/filter.js
- Run all tests:
yarn run test
- Run a single file:
yarn run test <filename>
Take a look at src/array.test.js
- Navigate to the appropriate file in
src/Array/<filename>
- Modify the file to include the appropriate function
Array.prototype.myFilter = function(filterFn) {
return this.filter(filterFn)
}