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:
-
objObjectObject to test
Returns:
True if the object is an Array, false otherwise.
isBoolean
-
obj
Returns whether the given object is a Boolean.
Parameters:
-
objObjectObject to test
Returns:
True if the object is a Boolean, false otherwise.
isDate
-
obj
Returns whether the given object is a Date.
Parameters:
-
objObjectObject 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:
-
objObjectObject to test
Returns:
True if the object is empty, false otherwise.
isFunction
-
obj
Returns whether the given object is a Function.
Parameters:
-
objObjectObject to test
Returns:
True if the object is a Function, false otherwise.
isNull
-
obj
Returns whether the given object is null.
Parameters:
-
objObjectObject to test
Returns:
True if the object is null, false otherwise.
isNumber
-
obj
Returns whether the given object is a Number.
Parameters:
-
objObjectObject to test
Returns:
True if the object is a Number, false otherwise.
isObject
-
obj
Returns whether the given object is an Object.
Parameters:
-
objObjectObject to test
Returns:
True if the object is an Object, false otherwise.
isString
-
obj
Returns whether the given object is a String.
Parameters:
-
objObjectObject 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:
-
aObjectObject to merge into
-
bObjectObject 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)
