Misc stuff that I don't know where to categorize
Other
- Check if the code is running in Jest
- Check if the code is running in NodeJS
- Check if the code is running in the browser
- Clear all cookies
- Convert 3 digits color to 6 digits color
- Convert Celsius to Fahrenheit
- Convert cookie to object
- Convert Fahrenheit to Celsius
- Convert hex to rgb
- Convert rgb color to hex
- Convert URL parameters to object
- Decode a JWT token
- Detect dark mode
- Easing functions
- Emulate a dice throw
- Encode a URL
- Generate an unique and increment id
- Get the first defined and non null argument
- Get the value of a cookie
- Get the value of a param from a URL
- Get type of a variable in string
- Recursion
- Redirect the page to HTTPS if it is in HTTP
- Run Promises in sequence
- Swap two variables
- Wait for an amount of time