JAVASCRIPT BEST SNIPPETS
Get current date and time
Check if a variable is an array
Remove
duplicates from an array
Sort an array in ascending order
Reverse an array
Convert string to number
Generate a random number between two values
Check if a string contains a substring
Get the length of an object
Convert object to array
Check if an object is empty
Set a cookie
Get the current viewport dimensions
Happy Learning