Skip to content

Instantly share code, notes, and snippets.

@kouphax
Created October 16, 2010 19:35
Show Gist options
  • Save kouphax/630195 to your computer and use it in GitHub Desktop.
Save kouphax/630195 to your computer and use it in GitHub Desktop.
jQuery.type(true) === 'boolean'
jQuery.type(3) === 'number'
jQuery.type('test') === 'string'
jQuery.type(function(){}) === 'function'
jQuery.type([]) === 'array'
jQuery.type(new Date()) === 'date'
jQuery.type(/test/) === 'regexp'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment