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.
Learn how you can leverage the Proxy object to use a JavaScript object the same way as you would use a regular array.
JavaScript, Object · Sep 27, 2021
Learn how JavaScript's iterators work and how you can use them to level up your projects by understanding these short code examples.
JavaScript, Array · Sep 26, 2021
Learn how to use the JavaScript ES6 spread syntax to converting iterables to arrays and level up your code today.
JavaScript, Object · Jun 12, 2021
Enums are part of TypeScript, but what about defining enums in plain old JavaScript? Here are a few way you can do that.
JavaScript, Object · Jun 12, 2021
Learn how JavaScript handles mutable data, such as objects and arrays, and understand how shallow cloning and deep cloning work.
JavaScript, Object · Jun 12, 2021
Retrieves a set of properties indicated by the given selectors from an object.
JavaScript, Object · Oct 19, 2020
Learn how to implement the singleton design pattern in JavaScript, using the Proxy object.
JavaScript, Object · Sep 28, 2021
Maps an object to an object array, using the provided mapping function.
JavaScript, Object · Feb 5, 2023
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
Learn how you can compare two objects in JavaScript using various different techniques.
JavaScript, Object · Sep 26, 2021
Converts a comma-separated values (CSV) string to a 2D array of objects. The first row of the string is used as the title row.
JavaScript, String · Jan 30, 2022
Deeply merges two objects, using a function to handle keys present in both.
JavaScript, Object · Jul 25, 2021
Converts an array of objects to a comma-separated values (CSV) string that contains only the columns
specified.
JavaScript, Array · Oct 13, 2021
Generates an object from the given query string or URL.
JavaScript, Object · Nov 3, 2020
Replaces the names of multiple object keys with the values provided.
JavaScript, Object · Oct 22, 2020