JavaScript
JavaScript
Aug 29, 2025 · Frontend Development

Why encodeURIComponent Is Obsolete: Master URLSearchParams for Safer URLs

The article explains the pitfalls of manually concatenating URLs with encodeURIComponent, introduces the modern URL and URLSearchParams APIs, and demonstrates how these objects simplify encoding, adding, modifying, and deleting query parameters safely and cleanly in both browsers and Node.js environments.

JavaScriptURLURLSearchParams
0 likes · 7 min read
Why encodeURIComponent Is Obsolete: Master URLSearchParams for Safer URLs
JavaScript
JavaScript
Aug 18, 2025 · Frontend Development

Unlock JavaScript’s Hidden APIs: URLSearchParams, structuredClone & Object.groupBy

Learn how modern browsers’ built-in JavaScript APIs—URLSearchParams for effortless query parsing, structuredClone for reliable deep cloning, and the new Object.groupBy method for concise array grouping—replace verbose legacy code with clean, robust one-liners, boosting readability and development speed.

JavaScriptObject.groupByURLSearchParams
0 likes · 5 min read
Unlock JavaScript’s Hidden APIs: URLSearchParams, structuredClone & Object.groupBy