js-4-n00bs
Meta
Build Check
Quick Start
- Install dependencies:
yarn install
Running a file
yarn run file <filename>
Example: yarn run file src/filter.js
Testing
How to run test
- Run all tests:
yarn run test
- Run a single file:
yarn run test <filename>
How to test
Take a look at src/array.test.js
How to Add Custom method
- Navigate to the appropriate file in
src/Array/<filename>
- Modify the file to include the appropriate function
src/Array/filter.js
Example with Array.prototype.myFilter = function(filterFn) {
return this.filter(filterFn)
}