plainJS

Functions / Utilities

Utilities

Objects, strings, cookies, timing. 5 snippets.

  1. Merge two JavaScript objects$.extend()
  2. Parsing a JSON string$.parseJSON()
  3. Set cookie, get cookie and delete cookie
  4. Strip leading and trailing white-space from string$.trim()
  5. Test if a certain value exists in an array$.inArray()

The other groups: