Calculate SHA-256 hash in JavaScript
Calculate a SHA-256 hash in JavaScript using native APIs in both the browser and Node.js.
The JavaScript snippet collection contains a wide variety of ES6 helper functions. It includes helpers for dealing with primitives, arrays and objects, as well as algorithms, DOM manipulation functions and Node.js utilities.
Calculate a SHA-256 hash in JavaScript using native APIs in both the browser and Node.js.
A doubly linked list is a linear data structure where each element points both to the next and the previous one.
A linked list is a linear data structure where each element points to the next.
Learn common number formatting operations, such as rounding, padding, optional decimal marks, currency, seconds, bytes, and more.
A graph is a data structure consisting of a set of vertices connected by a set of edges.
A deep dive into modeling money, currencies, and exchange rates using JavaScript.
Learn how you can leverage the Proxy object to use a JavaScript object the same way as you would use a regular array.
A complete guide to case conversion in JavaScript, including camel case, kebab case, snake case, Pascal case, title case and sentence case.
Learn how JavaScript handles mutable data, such as objects and arrays, and understand how shallow cloning and deep cloning work.
Learn how to perform various transformations on the keys of a JavaScript object.
Discover the inner workings of JavaScript arrays and learn about the different ways to initialize them.
The Event Loop is a source of confusion for many developers, but it's a fundamental piece of the JavaScript engine.
Learn how to get a nested object property by key or a path string in JavaScript, and how to search for nested values in an object.
Learn how JavaScript's iterators work and how you can use them to level up your projects by understanding these short code examples.
Convert the data from an HTML form into a JavaScript object or serialize it into a query string.
JavaScript provides a handful of native data structures that you can start using in your code right now.
Easily remove duplicates from a JavaScript array using the built-in Set
object, and learn a few other tricks along the way.
Learn how to implement array zipping, a grouping of elements based on position in the original arrays, and its inverse, unzipping.
Learn the differences between JavaScript ES6 arrow functions and regular functions and how they affect event listener callbacks.
There are many ways to iterate and transform array data in JavaScript. Learn how each one works and where you should use them.
Ever wanted to sort an array of objects, but felt like it was too complex? Here's a robust solution for just that.
Pick up a few new tricks which you can use to clone arrays in JavaScript.
Learn different ways to memoize function calls in JavaScript as well as when to use memoization to get the best performance results.
Create your own static file server with Node.js in just 70 lines of code.