
JavaScript Snippets
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.
Boolean traps and how to avoid them
JavaScript, Article
Boolean traps can cause readabiltiy and maintainability issues in your code. Learn what they are, how to spot and fix them in this article.
Code Anatomy - For loops, array reduce and method chaining
JavaScript, Article
There are many ways to iterate and transform array data in JavaScript. Learn how each one works and where you should use them.
What are JavaScript Iterators and where can I use them?
JavaScript, Article
Learn how the new JavaScript ES6 Iterators work and how you can use them to level up your programming projects by understanding these short code examples.
Can I use an object as an array without modifying it in JavaScript?
JavaScript, Article
Learn how you can leverage the Proxy object to use a JavaScript object the same way as you would use a regular array.
get
JavaScript, Object
Retrieves a set of properties indicated by the given selectors from an object.
kMeans
JavaScript, Algorithm
Groups the given data into
kclusters, using the k-means clustering algorithm.formatDuration
JavaScript, Date
Returns the human-readable format of the given number of milliseconds.
getURLParameters
JavaScript, Browser
Creates an object containing the parameters of the current URL.
copyToClipboard
JavaScript, Browser
Copies a string to the clipboard. Only works as a result of user action (i.e. inside a
clickevent listener).kNearestNeighbors
JavaScript, Algorithm
Classifies a data point relative to a labelled data set, using the k-nearest neighbors algorithm.
luhnCheck
JavaScript, Math
Implementation of the Luhn Algorithm used to validate a variety of identification numbers, such as credit card numbers, IMEI numbers, National Provider Identifier numbers etc.
unzipWith
JavaScript, Array
Creates an array of elements, ungrouping the elements in an array produced by zip and applying the provided function.
pullBy
JavaScript, Array
Mutates the original array to filter out the values specified, based on a given iterator function.
Learn the differences between JavaScript ES6 arrow functions and regular functions and how they affect event listener callbacks.
Where and how can I use memoization in JavaScript?
JavaScript, Article
Learn different ways to memoize function calls in JavaScript as well as when to use memoization to get the best performance results.

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
