code: function hasAncestorTypeCastComment(index) {
      const ancestor = path.getParentNode(index);
      return ancestor &&
        util.getNextNonSpaceNonCommentCharacter(text, ancestor, locEnd) !== ")" &&
        /^[\s(]*$/.test(text.slice(locStart(ancestor), locStart(n)))
        ? hasTypeCastComment(ancestor) || hasAncestorTypeCastComment(index + 1)
        : false;
    }
docs: for sub-item: /** @type {array} */ (numberOrString).map(x => x);