jsPlumbUtil Class
A set of helper methods for use by jsPlumb.
Item Index
Methods
isArray
-
obj
Returns whether the given object is an Array.
Parameters:
-
obj
ObjectObject to test
Returns:
True if the object is an Array, false otherwise.
isBoolean
-
obj
Returns whether the given object is a Boolean.
Parameters:
-
obj
ObjectObject to test
Returns:
True if the object is a Boolean, false otherwise.
isDate
-
obj
Returns whether the given object is a Date.
Parameters:
-
obj
ObjectObject to test
Returns:
True if the object is a Date, false otherwise.
isEmpty
-
obj
Returns whether the given object (an Object or Array) is empty.
Parameters:
-
obj
ObjectObject to test
Returns:
True if the object is empty, false otherwise.
isFunction
-
obj
Returns whether the given object is a Function.
Parameters:
-
obj
ObjectObject to test
Returns:
True if the object is a Function, false otherwise.
isNull
-
obj
Returns whether the given object is null.
Parameters:
-
obj
ObjectObject to test
Returns:
True if the object is null, false otherwise.
isNumber
-
obj
Returns whether the given object is a Number.
Parameters:
-
obj
ObjectObject to test
Returns:
True if the object is a Number, false otherwise.
isObject
-
obj
Returns whether the given object is an Object.
Parameters:
-
obj
ObjectObject to test
Returns:
True if the object is an Object, false otherwise.
isString
-
obj
Returns whether the given object is a String.
Parameters:
-
obj
ObjectObject to test
Returns:
True if the object is a String, false otherwise.
merge
-
a
-
b
-
[String[]
Merges one object into another, optionally folding individual values into arrays.
Parameters:
-
a
ObjectObject to merge into
-
b
ObjectObject to merge from.
-
[String[]
Object optional[collations] Optional list of parameter keys for values that, if present in both 'a' and 'b', should result in an array with values from each (rather than the default behaviour of overwriting a's value with b's)