empty method

bool empty()

Returns true if this selection contains no (non-null) elements.

d4.selectAll("p".u31).empty(); // false, here

Implementation

bool empty() {
  return node() == null;
}