Chapter 14
Arrays
Array semantics and methods — mutating vs copying, sorting, holes, searching — and the polyfills interviewers ask for.7 questions
- 010Which array methods mutate, and what are their copying versions?Coming sooneasy
- 020How does
Array.prototype.sortwork?Coming soonmedium - 030Implement
map,filter, andreduce.Coming soonCoremedium - 040What are sparse arrays and holes?Coming soonmedium
- 050Array-likes vs iterables: how do
Array.fromandArray.fromAsyncwork?Coming soonmedium - 060
includesvsindexOfvsfindvsfindLastvsat?Coming sooneasy - 070How do
flatandflatMapwork?Coming soonmedium