beginner40 minby DevFox

map, filter, find, some, and every

Hand a list a rule as an arrow function and let a method do the loop: map makes a new list, filter keeps some items, find gives back the first match or undefined, and some and every answer yes or no, stopping as soon as they know. See why find needs a check, why the new list must be kept, and make TaskKit refuse a task that is already on the list.

  • TypeScript
  • Fundamentals
`map`, `filter`, `find`, `some`, and `every`. Read this lesson at .