getComment method

getComment(index, isDeep)

Returns an Nth child Comment node.

getComment(index: number, isDeep: boolean)
ParameterTypeDescription
indexnumberZero based index of the child Comment node to select. Negative indexes are also allowed and indicate access from the end, that is -1 means the last node.
isDeepbooleantrue to select from all child nodes recursively; false to select only among immediate children.

Remarks

If index is out of range, a null is returned.

Returns

The child Comment node or null if no matching node is found.

See Also