public

type()Method

Description

Detects whether the argument is of specified type. The method can detect the following types:

'arguments', 'array', 'boolean', 'date', 'function', 'null', 'number', 'object', 'string', 'undefined'

Parameters

Type Name Description
Variant obj The object to check

Return Value

Type: String

A string representing the type name (the type to verify)

Example

 var foo = function() { alert(nokia.mh5.type(arguments)); };
 foo(); //alerts 'arguments'