ZeroOne ZeroOne
中文
RSS
中文
RSS
Portrait of Zero
Zero
Practical notes on web development, AI, and infrastructure.
Support
Categories
AI 11
Astro 1
Backend 3
DevOps 50
Frontend 64
Marketing 3
Tools 2
Tags
AI Animation API Array Astro Async Automation btop Caddy CI/CD CLI Cloudflare Codex Containers CSS Debugging Deployment Development DevOps Docker Durable Objects Forms Frontend Git GitHub GitHub Actions GitLab hreflang HTML HTTP i18n Images JavaScript JSON Linux Machine Learning MCP Migration Mobile Web n8n Node.js OpenCode Pagefind pnpm Progressive Enhancement Promise Python Search SEO Serverless System Monitoring Troubleshooting TypeScript Ubuntu Unicode Vite Workflows 設定管理 開發工具

Page 2 / 17

ZeroOne English articles, page 2

Posts 9–16 of 134

Read
2026-11-21
Frontend
/
JavaScript
/
Node.js
/
Troubleshooting

JSON.parse Reviver Gets an Empty Key: Filter the Root After Parsing

Trace the empty keys a JSON.parse reviver receives, then filter top-level fields after parsing while keeping a real empty key and nested settings.

451 words · 2 minutes
Read
2026-11-20
Frontend
/
JavaScript
/
Unicode
/
Troubleshooting

TextEncoder.encodeInto Can Split Emoji: Write Whole Graphemes

See how encodeInto can split a flag or drop an accent in a fixed UTF-8 buffer. Use Intl.Segmenter to write whole graphemes and verify the byte counts.

542 words · 3 minutes
Read
2026-11-19
Frontend
/
JavaScript
/
Node.js
/
Troubleshooting

structuredClone Copies the Whole Typed Array Buffer: Copy Just the View

Check what structuredClone copies or detaches for a Uint8Array subarray, then use slice() to isolate the visible bytes before sharing them.

422 words · 2 minutes
Read
2026-11-18
Frontend
/
JavaScript
/
Node.js
/
Troubleshooting

JSON.stringify Turns NaN and Infinity Into null: Keep Them Distinct

See why JSON.stringify turns NaN and both infinities into null, then test a field-specific encoding that preserves them alongside genuine null values.

390 words · 2 minutes
Read
2026-11-17
Frontend
/
JavaScript
/
Node.js
/
Troubleshooting

JavaScript sort Puts undefined Last: How to Put It First

See why JavaScript sort skips undefined in its comparator, then test two ways to move undefined first with numeric sorting or stable grouping.

396 words · 2 minutes
Read
2026-11-16
Frontend
/
JavaScript
/
Node.js
/
Troubleshooting

JavaScript Map.groupBy and JSON: Preserve Numeric and String Keys

See where Map.groupBy results lose groups during JSON serialization, then round-trip numeric and string IDs separately with an array of entries.

356 words · 2 minutes
Read
2026-11-15
Frontend
/
JavaScript
/
Array
/
Debugging

JavaScript flat(0) Removes Array Holes and Shifts Indexes

Compare flat(0), flat(1), and spread on one sparse array. See which copies shift indexes, fill holes with undefined, or leave nested arrays alone.

359 words · 2 minutes
Read
2026-11-14
Frontend
/
JavaScript
/
Node.js
/
Troubleshooting

JavaScript Destructuring Defaults and null in JSON Options

Reproduce two null failures in JavaScript destructuring defaults and normalize JSON options while preserving valid zero and false settings.

389 words · 2 minutes
1
2
345 17
© 2026 Zero. All Rights Reserved. / 中文 / RSS / Sitemap
© 2026 Zero. All Rights Reserved. / 中文 / RSS / Sitemap