/js-4-n00bs

Assignment #2 : Js internals

Primary LanguageJavaScript

js-4-n00bs

JS For Dummies

Meta

Build Check

Node.js CI

Quick Start

  1. 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

  1. Navigate to the appropriate file in src/Array/<filename>
  2. Modify the file to include the appropriate function

Example with src/Array/filter.js

Array.prototype.myFilter = function(filterFn) {
  return this.filter(filterFn)
}