Find matching keys in a JavaScript object
Find all the keys in a JavaScript object that match the given value.
30 seconds of code contains a curated collection of code articles covering a wide range of development needs. The collection spans many topics, ranging from simple coding problems to theoretical concepts and development techniques.
Find all the keys in a JavaScript object that match the given value.
Quickly and easily check if a string is a yes/no answer to a boolean question in your CLI programs.
Immutability is a fundamental concept you should be familiar with when learning functional programming.
Learn how to capitalize the first letter of a string in JavaScript using array destructuring and String.prototype.toUpperCase().
Learn how to use data attributes to represent UI state and level up your HTML and CSS game.
Learn how to create a unit converter data structure in JavaScript that can convert between any compatible units.
Chunk an array or iterable into arrays of a specified size or a given number of chunks.
Learn how to check if all values in an array are true or false.
Use a media query to check if the user prefers a light or dark color scheme.
Detect and handle click events outside of a specific element in just a few lines of JavaScript.
Learn how to trigger an event on an HTML element using JavaScript.
Learn how to add an event listener that is executed at most once.
Learn how to add or remove event listeners from elements with ease.
Get all the partial substrings of a string in JavaScript using generator functions.
Did you know that implementing a non-mutating version of Array.prototype.splice() is only a few lines of code?
Ever wanted to show or hide one or more elements in HTML, using JavaScript? Turns out it's very easy to do so.
A simple trick to remove one or more attributes from an HTML element.
Not sure if you need to prefix a CSS property in order to use it? Here's a simple way to figure it out!
Learn a simple way to get the browser's current URL in JavaScript.
Learn how to redirect the page to HTTPS if it's currently in HTTP.
Learn how to resolve promises one after another (sequentially) in JavaScript.
Easily create a debounced function that returns a promise.
Create a debounced function that waits a certain amount of time before invoking the provided function again.
Learn how to execute a function for each element of an array, starting from the last one.