API Docs for: 1.6.0
Show:

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.

Methods

d3plus.object.merge

(
  • obj1
  • obj2
)
Object

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 Object

    The primary object.

  • obj2 Object

    The secondary object to merge into the first.

Returns:

Object:

d3plus.object.validate

(
  • obj
)
Boolean

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 Object

    The object to validate.

Returns:

Boolean: