mySelection.classed( name ) in D3.js

Check to see if the selection has the specified class.

Arguments

nametypedescription
name String
Return Type
Boolean

Description

For more details see https://github.com/mbostock/d3/wiki/Selections#wiki-classed.

See Also