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.
Compares two objects to determine if the first one contains equivalent property values to the second one, based on a provided function.
JavaScript, Object · Oct 21, 2020
Freezing objects is not the only way to prevent mutations. Learn how you can leverage the Proxy object to your advantage.
JavaScript, Object · Apr 10, 2022
Converts an array of objects into an array of values corresponding to the specified key
.
JavaScript, Array · Oct 22, 2020
Gets the size of an array, object or string.
JavaScript, Object · Jan 20, 2023
Creates a function that invokes a method at a key in an object, with optional additional parameters.
JavaScript, Function · Oct 18, 2020
Property enumerability dictates how JavaScript object properties behave in different scenarios.
JavaScript, Object · Sep 11, 2022
The constructor is a crucial part of any JavaScript class, which is why you might want to take a closer look at what they return.
JavaScript, Function · Jun 12, 2021
Checks if an object is deeply frozen.
JavaScript, Object · Oct 20, 2020
Checks if the target value exists in a JSON object.
JavaScript, Object · Apr 10, 2023
Ever wanted to delete a property from a JavaScript object? Here are a few way you can accomplish that.
JavaScript, Object · Jun 12, 2021
Creates a function that invokes fn
with a given context, optionally prepending any additional supplied parameters to the arguments.
JavaScript, Function · Oct 18, 2020
Compares two objects to determine if the first one contains equivalent property values to the second one.
JavaScript, Object · Nov 3, 2020
Creates an array of key-value pair arrays from an object.
JavaScript, Object · Sep 15, 2020
How JavaScript handles passing data is a source of confusion and bugs for many developers, especially when it comes to object types.
JavaScript, Function · Dec 5, 2021