Skip to content

Topic archive

JavaScript

Focused JavaScript guides with working examples for arrays, objects, async code, browser APIs, streams, binary data, and design patterns.

25 articles

All JavaScript articles

Get URL parameters in JavaScript

Learn how to get the current URL parameters with JavaScript. Discover the different methods, including using the `URL` API, `window.location`, regular expressions, jQuery, and polyfills, to access and manipulate URL parameters in your web applications.

Read more

Sort an array of objects by property in JavaScript

Learn how to sort arrays of objects by a string property in JavaScript. Discover different methods, including using native `sort()` with and without `localeCompare()`, and how to simplify your code with arrow functions or libraries like Lodash.

Read more

Mastering JavaScript Array Searches

Master JavaScript array searches with this comprehensive guide. Learn to use indexOf(), findIndex(), includes(), lastIndexOf(), and find() to efficiently locate items in arrays. Perfect for developers optimizing performance and readability.

Read more

Check if a key exists in a JavaScript object

Discover the various ways to check if a key exists in a JavaScript object. Learn how to use the `in` operator, `hasOwnProperty()`, `Object.keys()`, `Object.getOwnPropertyNames()`, and more to ensure your code is robust and efficient.

Read more