FANDOM


Utils comes along with some functions for common use cases.

Contents

Functions

  • Check if a variable is 'isset()' or 'empty()'
  • Check if a number 'isEven()' or 'isOdd()'
  • Check if pageExists() in wiki
  • Replacement functions
    • replaceUmlauts()
    • replaceURIChars()
  • Zero pad()ing
  • setHash() in the current URL

Custom jQuery methods

  • getOuterHTML()
  • getQueryParameters()

Custom event handler

  • locationHashChanged()

Usage

You can

  • Code to the code file and pick the functions which delight you
  • Import it to your ImportJS