Find code snippets in seconds, across multiple languages. Just search and copy!
Removes duplicate values from an array.
Flattens a multi-dimensional array.
Converts a string into a URL-friendly slug format.
Capitalizes the first letter of a string.
Reverses the characters in a string.
Formats a date in 'YYYY-MM-DD' format.
Calculates the time difference in days between two dates.
Displays how long ago a date occurred or how far in the future a date is.
Invokes a function a specified number of times.
Delays a function execution until after a specified time.
Limits a function execution to once every specified time interval.
Toggles a class on an element.
Scrolls smoothly to a specified element.
Stores a value in localStorage under the given key.
Retrieves a value from localStorage by key and parses it.
Clears all data from localStorage.