isMemberOf method

bool isMemberOf(
  1. Part part
)

This predicate is true if this part is a member of the given Part, perhaps indirectly.

If the given part is a Group and this part is a member of the given group, this returns true. If this part is a Node and it is a label node for a link that is a member of the given group, this returns true. Otherwise this searches recursively any Part#containingGroup of the given part.

A part cannot be contained by itself. A template should not be a member of any group.

If this is a Node and you want to find whether it is in a subtree whose root is a given Node, use Node#isInTreeOf. @param {Part} part @return {boolean}

Implementation

_i2.bool isMemberOf(_i3.Part part) => _i4.callMethod(
      this,
      'isMemberOf',
      [part],
    );