[Home]  > Snippets  > Languages  > JavaScript  > Misc

Languages » JavaScript » Misc (Other)

  • Recursion
  • 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
  • Redirect the page to HTTPS if it is in HTTP
  • Run Promises in sequence
  • Swap two variables
  • Wait for an amount of time
Repo

    Repo: github.com/mrpotatoes

    Code & Repo orginally Phước Nguyễn's 1loc's code/repo

About
©- Anahi LibreSinn. All rights reserved.

Home

Eleventy
    • Website Generator: Eleventy