- fork this repository & create a new branch for your work
- write all of your code in a directory named
lab-+<your name>e.g.lab-susan - push to your repository
- submit a pull request to this repository
- submit a link to your PR in canvas
- write a question and observation on canvas
- create a
/liband/testdirectory - add a robust
.gitignorefile - include a
package.json - include the provided
.eslintrcfile - create a
lintscript for running eslint - create a
testscript for running mocha - create a
lib/fp.jsfile for holding the following:- create stand alone
map,filter,reduce,concat, andsplicefunctions using thecall, andapplymethods we discussed today - you are welcome to use/experiment with
bindtoo!
- create stand alone
- note: - all functions should be created using the es6 lexical arrow function syntax
- create a test for each of your custom functions in
lib/fp.js- note - feel free to create additional tests, if you choose!
- create a CLI (
index.js) that will use your newmapfunction to uppercase all command line arguments and print them to the screen: 1pt- hint: - you'll want to check out the
processobject (and it's methods) to get an array of provided command line arguments
- hint: - you'll want to check out the
- test your CLI: 1pt
