30 seconds of code
Short code snippets for all your development needs
Featured Collections
Latest Articles
Object.is()
and the triple equals operator (===
) can both be used for equality checking in JavaScript, but when should you use each one?When working with numeric arrays in JavaScript, you might find yourself in need of finding the minimum or maximum value. Here's a quick and easy way to do it.
Level up your JavaScript logging with these
console.log()
tips and tricks.
Top Snippets
Renders a tag input field.
Renders a checkbox list that uses a callback function to pass its selected value/values to the parent component.
Groups the given data into
k
clusters, using the k-means clustering algorithm.Creates a list with floating headings for each section.
Retrieves a set of properties indicated by the given selectors from an object.