d3plus.object Class
D3plus features a set of methods that relate to various object properties. These methods may be used outside of the normal constraints of the visualizations.
Item Index
Methods
d3plus.object.merge
(
Object
-
obj1
-
obj2
Given any two objects, this method will merge the two objects together, returning a new third object. The values of the second object always overwrite the first.
Parameters:
-
obj1
ObjectThe primary object.
-
obj2
ObjectThe secondary object to merge into the first.
Returns:
Object:
d3plus.object.validate
(
Boolean
-
obj
This function returns true if the variable passed is a literal javascript keyed Object. It's a small, simple function, but it catches some edge-cases that can throw off your code (such as Arrays and null
).
Parameters:
-
obj
ObjectThe object to validate.
Returns:
Boolean: