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.
Checks if all the elements in values
are included in arr
.
JavaScript, Array · Oct 20, 2020
Checks if at least one element of values
is included in arr
.
JavaScript, Array · Oct 20, 2020
Initializes and fills an array with the specified values.
JavaScript, Array · Oct 20, 2020
Did you know you can use Chrome Developer Tools to debug your Node.js code? Find out how in this short guide.
JavaScript, Node · Jun 12, 2021
Given a key and a set of arguments, call them when given a context.
JavaScript, Function · Jun 13, 2021
Calculates the distance between two points.
JavaScript, Math · Dec 28, 2020
Checks if the element specified is visible in the viewport.
JavaScript, Browser · Oct 22, 2020
Opens or closes an element in fullscreen mode.
JavaScript, Browser · Oct 19, 2020
Gets the protocol being used on the current page.
JavaScript, Browser · Oct 20, 2020
Checks if localStorage
is enabled.
JavaScript, Browser · Dec 31, 2020