Selecting a node in d3js based upon the value of its data

How to select a node in d3js whose data has a cer­tain value Lets say that you cre­ated a d3 struc­ture based upon some data and you now want to query that struc­ture to select…