Change into your project's directory: cd js-iteration
Install the dependencies: yarn install (or just yarn for short)
Open in your editor]
Start the test runner: yarn test
Open src/functions.test.js and work on functions until tests pass.
Commit and push your work to GitHub.
Turn in the URL to your GitHub repo.
Explorer Mode
All tests passing
Epic Mode
Using the forEach looping method and no other looping or enumeration helper, write your own version of the following methods, except name yours _map,
_filter, etc.
map
filter
reduce
every
some
Write some example usage of your new methods to demonstrate that they work
Additional Resources
Reference the documentation on DevDocs to find what kind of helpful functions
might already be in JavaScript.
Objectives
After completing this assignment, you should be able to:
Instructions
hub clone js-iteration
cd js-iteration
yarn install
(or justyarn
for short)yarn test
src/functions.test.js
and work on functions until tests pass.Explorer Mode
Epic Mode
forEach
looping method and no other looping or enumeration helper, write your own version of the following methods, except name yours_map
,_filter
, etc.map
filter
reduce
every
some
Additional Resources
Reference the documentation on DevDocs to find what kind of helpful functions might already be in JavaScript.