1. Computing & Technology

Typeof

From , former About.com Guide

See More About:
Definition: The typeof statement tests if an object is of a particular type. It evaluates to number, string, boolean, object, function, or undefined. Typeof is a reserved word and cannot be used for anything other than testing an object's type.
Examples:
if (typeof myfield == 'string')
Related Searches number string s type

©2012 About.com. All rights reserved.

A part of The New York Times Company.