JSUtilities.js – Nifty little JavaScript Utilities

Here’s an interesting little JavaScript utilities file:

  • array.push (if unsupported)
  • array.shift (if unsupported)
  • function.apply (if unsupported)
  • inArray() [Port from PHP] Hunts for a value in the specified array
  • isArray() [Port from PHP] verifies if something is an array
  • ksort() [Port from PHP] sorts an array by key names
  • addClass() appends the specified class to the object
  • removeClass() removes the specified class to the object
  • lastChildContainingText() finds the last block-level text-containing element within an object

http://old.easy-designs.net/code/jsUtilities/working/jsUtilities.js