JavaScript Set Methods Accept Set-Like Objects, Not Arbitrary Iterables
Use union, intersection, difference, and Set predicates with the size, has, and keys set-like protocol.
JavaScript technical articles
Clear explanations of the details that shape real programs.
Explore JavaScript runtime behavior, language semantics, browser APIs, and the edge cases that affect production code.
15 articles
Use union, intersection, difference, and Set predicates with the size, has, and keys set-like protocol.
Choose Object.groupBy or Map.groupBy based on property-key coercion, object identity, symbols, and result access.
Control RegExp lastIndex safely with global and sticky matches, zero-length patterns, test, exec, and matchAll.
Choose the right JavaScript equality rule for NaN, signed zero, array searches, and Map or Set keys.
How #private fields enforce class identity across inheritance, proxies, static members, and explicit brand checks.
Choose a Promise combinator by its failure result, ordering guarantees, and whether you need explicit cancellation for unfinished work.
A practical model for tasks, microtasks, rendering, and the ordering surprises that appear in production JavaScript.
How AbortController coordinates fetches, timers, event listeners, and higher-level operations without owning them.
A practical guide to interception, receiver semantics, and the rules a proxy cannot pretend away.
How WeakMap, WeakRef, and FinalizationRegistry interact with reachability and garbage collection.
What structuredClone preserves, what transfer changes, and where class instances lose their identity.
How UTF-16 code units, Unicode code points, and grapheme clusters affect indexing and validation.
A closer look at what module loading guarantees—and what changes when the dependency graph contains a loop.
Why for-await-of is more than convenient syntax, and how it changes the shape of streaming code.
What spread, Object.assign, descriptors, prototypes, and enumeration order mean for everyday JavaScript objects.