Check if a value is a valid date string
Make sure a value is a valid date string for creating a Date object.
JavaScript
Handy code Snippets you can copy and paste.
Make sure a value is a valid date string for creating a Date object.
JavaScript
Test if a string value is in the proper hexadecimal color format.
JavaScript
Perfect for a CSS-only image slider!
CSS
Replace broken image links with a placeholder with Next.js image.
Next.js
React
Convert a date to a readable format.
JavaScript
Use the JavaScript Array sort() method to sort arrays of numbers, strings, and objects.
JavaScript
Create a random number between a defined minimum and maximum values.
JavaScript
Get the text a user selects on a webpage as a string.
JavaScript
Remove unwanted keys and values from a JavaScript object.
JavaScript
Check if an object is empty.
JavaScript
Return a human-readable format of the given number of milliseconds.
JavaScript
Push your local branch to a remote repo.
Git
Easily remove duplicates with the Set constructor in JavaScript.
JavaScript
Shorten a number like 34,000 to 34K.
JavaScript
Calculate the time in milliseconds between two dates
JavaScript
Create a new branch based on a previous commit in Git
Git
Limit the contents of a block container to the specified number of lines.
CSS
Combine CSS classes for easy dynamic styling.
JavaScript
CSS