dis isa
isa types for javascript
API
isBoolean(any) : boolean
Method that takes in a value and returns whether or not it is boolean.
;types; // truetypes; // truetypes; // falsetypes; // false
isUndefined(any) : boolean
Method that takes an input and returns whether or not it is undefined
.
;types; // falsetypes; // true
isNull(any) : boolean
Method that takes an input and returns whether or not it is null
;types; // falsetypes; // truetypes; // false
isRegex(any) : boolean
Method that takes an input and returns whether or not it is a regular expression
;types; // falsetypes; // truetypes; // true
isArray(any) : boolean
Method that takes an input and returns whether or not it is an array. The check will try to default to the built in isArray
if available, otherwise an equivalent check is performed.
;types; // falsetypes; // truetypes; // true
isFunction(any) : boolean
Method that takes an input and returns whether or not it is a function.
;{}types; // falsetypes; // truetypes; // false
isString(any) : boolean
Method that takes an input and returns whether or not it is a string.
;types; // falsetypes; // truetypes; // true
isDate(any) : boolean
Method that takes an input and returns whether or not it is a Date.
;types; // falsetypes; // falsetypes; // true
isObject(any) : boolean
Method that takes an input and returns whether or not it is an object. And object is any one of the following:
- literal object
- object instance
- array
- null
;types; // falsetypes; // truetypes; // truetypes; // true
isPlainObject(any) : boolean
Method that takes an input and returns whether or not it is a plain object. A plain object can be:
- A literal object.
{}
- Objects created with
new Object()
andObject.create
;types; // falsetypes; // falsetypes; // truetypes; // truetypes; // true
isError(any) : boolean
Method that takes an input and returns whether or not it is an Error. Errors are instances of Error
, including exceptions.
;var err = ;types; // falsetypes; // true
typeName(any) : string
Method that takes an input and returns its string type representation. The string type is all lower case. Useful for extending the supported types.
;types; // 'number'types; // 'null'types; // 'function'
toString(any) : string
Method that takes an input and returns the raw type signature. Useful for extending the supported types.
;types; // '[object Number]'types; // '[object Null]'types; // '[object Function]'