has method

bool has(
  1. Object nameOrIndex
)

Whether get finds a node for nameOrIndex.

Implementation

bool has(Object nameOrIndex) => get(nameOrIndex) != null;