ObjectUtils.js

Summary
ObjectUtils.js
Functions
isNullChecks if given value is null (not undefined).
isUndefinedChecks if given value is undefined.
isNullOrUndefinedChecks if given value is null or undefined.
existsChecks if given value exists (is neither null nor undefined).
isStringChecks if given value is string.
isBooleanChecks if given value is boolean.
isTrueChecks if given value is boolean and it is true.
isFalseChecks if given value is boolean and it is false.
isFunctionChecks if given value is function.
isRegExpChecks if given value is a RegExp.
isDateChecks if given value is a Date.
isArrayChecks if given value is an array.
isNotEmptyArrayChecks if given value is a not empty array.
isObjectChecks if given value is a non-null object.
isNumberChecks if given value is a number.

Functions

isNull

isNull : function(value)

Checks if given value is null (not undefined).

Returns

true if the value is null, false otherwise.

isUndefined

isUndefined : function(value)

Checks if given value is undefined.

Returns

true if the value is undefined, false otherwise.

Parameters

valuevalue to check.

isNullOrUndefined

isNullOrUndefined : function(value)

Checks if given value is null or undefined.

Returns

true if the value is null or undefined, false otherwise.

Parameters

valuevalue to check.

exists

exists : function(value)

Checks if given value exists (is neither null nor undefined).

Returns

true if the value is neither null nor undefined, false otherwise.

Parameters

valuevalue to check.

isString

isString : function(value)

Checks if given value is string.

Returns

true if the value is string, false otherwise.

Parameters

valuevalue to check.

isBoolean

isBoolean : function(value)

Checks if given value is boolean.

Returns

true if the value is boolean, false otherwise.

Parameters

valuevalue to check.

isTrue

isTrue : function(value)

Checks if given value is boolean and it is true.

Returns

true if the value is boolean and true, false otherwise.

Parameters

valuevalue to check.

isFalse

isFalse : function(value)

Checks if given value is boolean and it is false.

Returns

true if the value is boolean and it is false, false otherwise.

Parameters

valuevalue to check.

isFunction

isFunction : function(value)

Checks if given value is function.

Returns

true if the value is function, false otherwise.

Parameters

valuevalue to check.

isRegExp

isRegExp: function(value)

Checks if given value is a RegExp.

Returns

true if the value is RegExp, false otherwise.

Parameters

valuevalue to check.

isDate

isDate: function(value)

Checks if given value is a Date.

Returns

true if the value is Date, false otherwise.

Parameters

valuevalue to check.

isArray

isArray : function(value)

Checks if given value is an array.

Returns

true if the value is an array, false otherwise.

Parameters

valuevalue to check.

isNotEmptyArray

isNotEmptyArray : function(value)

Checks if given value is a not empty array.

Returns

true if the value is an array and it is not empty, false otherwise.

Parameters

valuevalue to check.

isObject

isObject : function(value)

Checks if given value is a non-null object.

Returns

true if the value is a non-null object, false otherwise.

Parameters

valuevalue to check.

isNumber

isNumber: function(value)

Checks if given value is a number.

Returns

true if the value is a number, false otherwise.

Parameters

valuevalue to check.
isNull : function(value)
Checks if given value is null (not undefined).
isUndefined : function(value)
Checks if given value is undefined.
isNullOrUndefined : function(value)
Checks if given value is null or undefined.
exists : function(value)
Checks if given value exists (is neither null nor undefined).
isString : function(value)
Checks if given value is string.
isBoolean : function(value)
Checks if given value is boolean.
isTrue : function(value)
Checks if given value is boolean and it is true.
isFalse : function(value)
Checks if given value is boolean and it is false.
isFunction : function(value)
Checks if given value is function.
isRegExp: function(value)
Checks if given value is a RegExp.
isDate: function(value)
Checks if given value is a Date.
isArray : function(value)
Checks if given value is an array.
isNotEmptyArray : function(value)
Checks if given value is a not empty array.
isObject : function(value)
Checks if given value is a non-null object.
isNumber: function(value)
Checks if given value is a number.