ZeroOne English articles, page 2

JavaScript filter(Boolean) Removes 0: Keep Non-Nullish Values
2026-10-13
Frontend
Reproduce why filter(Boolean) drops 0, false, and empty strings, then verify a nullish-only predicate and distinguish sparse holes from undefined.
815 words
|
4 minutes
Cover Image of the Post
JavaScript map(parseInt) Returns NaN: Fix the Callback
2026-10-12
Frontend
Trace why map(parseInt) uses array indexes as radices, then test decimal parsing, Number conversion, and strict integer validation on eight inputs.
905 words
|
5 minutes
Cover Image of the Post
JavaScript await forEach Does Not Wait: Choose Serial or Concurrent Work
2026-10-11
Frontend
Reproduce await forEach returning before work finishes, then verify for...of sequencing and Promise.all with map using a controllable promise gate.
938 words
|
5 minutes
Cover Image of the Post
JavaScript sort Boolean Comparator: Test and Fix Wrong Order
2026-10-10
Frontend
Reproduce a JavaScript boolean comparator failing five input orders, check its comparison contract, and sort numbers without changing the source array.
959 words
|
5 minutes
Cover Image of the Post
JSON.stringify Drops undefined: Keep Intentional Null Fields
2026-10-09
Frontend
Reproduce undefined fields disappearing from JSON, preserve false and zero, and choose explicit null or omission before sending an API request.
881 words
|
4 minutes
Cover Image of the Post
URLSearchParams Duplicate Keys: Preserve Values Before Object Conversion
2026-10-08
Frontend
Fix repeated query parameters lost by Object.fromEntries: reproduce first versus last values, preserve arrays, and reject duplicate single-value fields.
891 words
|
4 minutes
Cover Image of the Post
Node.js Env false Is Truthy: Parse Boolean Flags Explicitly
2026-10-07
Backend
Reproduce a false environment flag enabling a Node.js feature, then test explicit parsing, missing values, invalid input, and parent-env overrides.
842 words
|
4 minutes
Cover Image of the Post
Promise.all Rejects Early: Wait Before Cleaning Up
2026-10-06
Backend
Reproduce work continuing after Promise.all rejects, then compare allSettled with abort-and-drain before releasing shared resources in Node.js.
941 words
|
5 minutes
Cover Image of the Post