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.
Maps an object to an object array, using the provided mapping function.
JavaScript, Object · Feb 5, 2023
JavaScript arrays have a very robust API offering a plethora of amazing tools. Learn the 4 must-know JavaScript array methods in this quick guide.
JavaScript, Array · Jun 12, 2021
JavaScript's arrow functions are seemingly the same as regular functions, but there are some important differences you need to know.
JavaScript, Function · Oct 17, 2021
Did you know you can get the index of an array item in a JavaScript for...of loop? Learn how with this bite-sized tip.
JavaScript, Array · Jul 25, 2021
A binary search tree is a data structure consisting of a set of ordered linked nodes representing a hierarchical tree structure, in which each node can have at most two children.
JavaScript, Class · Aug 31, 2021
A custom data structure to keep track of value frequencies in an array.
JavaScript, Class · Nov 13, 2022
Maps and objects are very similar, but they have some differences that can help you decide which one better fits your use-case.
JavaScript, Object · Feb 13, 2022
Renders the given DOM tree in the specified DOM element.
JavaScript, Browser · Oct 13, 2021
Creates an array of elements, ungrouping the elements in an array produced by zip and applying the provided function.
JavaScript, Array · Jan 23, 2022
Accessibility (a11y) can improve your website and attract new users. Learn how to get started with these 8 quick tips.
JavaScript, Accessibility · Jun 12, 2021
Closures are used frequently, yet often misunderstood. Understanding them in depth is crucial to be able to write clean, maintainable code.
JavaScript, Function · May 18, 2022
Did you know you can define an iterator for any JavaScript value? This quick tip will show you how.
JavaScript, Array · Jun 12, 2021
Learn how you can compare two objects in JavaScript using various different techniques.
JavaScript, Object · Sep 26, 2021
JavaScript uses callback functions in various places for different purposes. From event listeners to asynchronous operations, they are an invaluable tool you need to master.
JavaScript, Function · Oct 3, 2021
Creates a hash for a value using the SHA-256 algorithm. Returns a promise.
JavaScript, Browser · Oct 13, 2021