Skip to content

Latest commit

History

History
6 lines (5 loc) 路 450 Bytes

README.md

File metadata and controls

6 lines (5 loc) 路 450 Bytes

Notes from Lesson 07

  • Array.some() returns true, if any one of the item in the array matches the stated condition.
  • Array.every() returns true, only if all of the items in the array matches the stated condition.
  • Array.find() returns the first element that matches the condition. If element not found, returns undefined
  • Array.findIndex() returns the index of the first element that matches the condition. Returns -1, if not found.