mrected / assignments

SDG Assignments
0 stars 0 forks source link

Week 05 - Day 2 - JavaScript Iteration #17

Closed gstark closed 5 years ago

gstark commented 5 years ago

JavaScript Iteration

Objectives

After completing this assignment, you should be able to:

Instructions

  1. Fork this repository to your own account.
  2. Change into your projects directory:
  3. Clone your repository: git clone js-iteration
  4. Change into your project's directory: cd js-iteration
  5. Install the dependencies: yarn install (or just yarn for short)
  6. Open in your editor]
  7. Start the test runner: yarn test
  8. Open src/functions.test.js and work on functions until tests pass.
  9. Commit and push your work to GitHub.
  10. Turn in the URL to your GitHub repo.

Explorer Mode

Additional Resources

Reference the documentation on DevDocs to find what kind of helpful functions might already be in JavaScript.

mrected commented 5 years ago

https://github.com/mrected/js-iteration

gstark commented 5 years ago

findTheNeedle should use the find method

const findTheNeedle = strings => {
  let found = strings.filter(string => string.includes('needle'))
  return found[0]
}
gstark commented 5 years ago

Your homework was marked: Exceeds Expectations

Woah

“Woah” — via Jason L Perry