Core Docs | Additional Modules Docs

sb.typeOf


@Description: returns the type of the object it is passed
@File: sb.js
@Param: object o Any type of javascript object, string, array, function, number, etc
@Return: String 'function', 'array', 'string', 'object', 'textnode', 'element', 'boolean', 'float', 'number', or returns value of object's custom typeOf() if it exists, 'null'
@Example:
var obj = {name : 'joe'}
        sb.typeOf(obj); //return 'object'