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.
JavaScript variables can be declared a handful of ways. However, understanding their differences can drastically change the way you code.
JavaScript, Type · Dec 2, 2021
Have you ever tried to convert the string representation of a boolean to an actual boolean value? Here's a simple way to do it.
JavaScript, String · Sep 14, 2022
Checks if the given argument is an async
function.
JavaScript, Type · Oct 20, 2020
Checks if the given argument is a generator function.
JavaScript, Type · Oct 20, 2020
JavaScript developers often get confused by JavaScript's variables and scope. Here's a quick guide to understanding these concepts.
JavaScript, Type · Jun 12, 2021
Checks if the provided value is an object created by the Object constructor.
JavaScript, Type · Oct 20, 2020
You've probably come across the double negation operator (!!
) before, but do you know what it does?
JavaScript, Type · Jul 26, 2022
JavaScript has three different empty states for variables. Learn their differences and how you can check for each one.
JavaScript, Type · Jun 12, 2021
Learn all you need to know about the differences between JavaScript's double equals and triple equals operators.
JavaScript, Type · Jun 12, 2021
Customizes a coalesce function that returns the first argument which is true
based on the given validator.
JavaScript, Function · Oct 22, 2020
Numeric separators are a somewhat lesser-known JavaScript syntactic sugar that can make working with large constants a lot easier.
JavaScript, Math · Jun 27, 2021