1 Determine whether it is an array type
2 Determine whether it is a string type
3 Determine whether it is a numeric type
4 Determine whether it is a date type
5 Determine whether it is a function
6 Determine whether it is an object
1 Determine whether it is an array type
2 Determine whether it is a string type
3 Determine whether it is a numeric type
4 Determine whether it is a date type
5 Determine whether it is a function
6 Determine whether it is an object
< ;script type="text/javascript">
//document.write(isObject(new Object()),'
');
document.write(isObject(10),'
');
function isObject(obj){
return (typeof obj=='object')&&obj.constructor==Object;
}
//]]>