Skip to content

Design Shards

User submitted Links on designshard.com

Categories

  • Contest (149)
  • Flash (23)
  • Freebie (371)
  • General (493)
  • Graphic Design (931)
  • Identity & Branding (96)
  • Illustration (332)
  • Inspiration (1,396)
  • Interview (129)
  • Programming (73)
  • Tutorial (576)
  • Web Design (1,056)
  • Wordpress (197)

Tag: typeof

Checking Object Type and Validating the Argument Type in JavaScript

The “typeof” operator is very useful at the moment for checking what kind or type of object we are dealing with. It returns a string containing the datatype of the object. The values returned are “number”, “string”, “boolean”, “undefined”, “function”, and “object”.

Posted on August 1, 2010Author teylorfelizCategories ProgrammingTags arguments, JavaScript, typeof, Validation
Proudly powered by WordPress