Topics

Jump to a topic.

Search questions

Find a question by title, tag, or summary.

Chapter 14

Arrays

Array semantics and methods — mutating vs copying, sorting, holes, searching — and the polyfills interviewers ask for.
7 questions
  1. 010Which array methods mutate, and what are their copying versions?Coming sooneasy
  2. 020How does Array.prototype.sort work?Coming soonmedium
  3. 030Implement map, filter, and reduce.Coming soonCoremedium
  4. 040What are sparse arrays and holes?Coming soonmedium
  5. 050Array-likes vs iterables: how do Array.from and Array.fromAsync work?Coming soonmedium
  6. 060includes vs indexOf vs find vs findLast vs at?Coming sooneasy
  7. 070How do flat and flatMap work?Coming soonmedium