mbostock/d3 — pull request #1014 by paulgb (2013-01-17 19:33:26+00:00)
Title: Export d3_identity function on d3 object

The d3 core defines an identity function but does not make it available to the user. This simply adds it to the d3 object as d3.identity so the user can use it as well.

This simplifies nested data (myNode.data(d3.identity)...) and makes code more readable/