<https://greensock.com/forums/topic/20011-getchildren-on-timeline-with-stagger/#comment-93266>
<http://schema.org/text>
"Well as far as I know there is no direct way to get the type from an instance, but it could be something I'm not aware of, Jack could offer a final say in this.\n \n\n\n\t \n \n\n\n\tWhat I can think of is the following. Single instances like TweenLite/Max don't have the .add() method while Timeline instances do, so that tells you if you're dealing with a timeline or single tween.\n \n\n\n\t \n \n\n\n\tA TweenMax instance has the yoyo property so you can check that and finally a TimelineMax has the .getLabelsArray() method, as you already know , so a way to check would be this:\n \n\n\n\t \n \n\n\nvar checkInstance = function (instance) {\n  if ( instance.add ) {\n    // instance is a timeline\n    if ( instance.getLabelsArray ) {\n      // instance is TimelineMax\n    } else {\n      // instance is TimelineLite\n    }\n  } else {\n    // instance is TweenLite or TweenMax\n    if (instance.yoyo) {\n      // instance is TweenMax\n    } else {\n      // instance is TweenLite\n    }\n  }\n};\n\n\n\t \n \n\n\n\tHappy Tweening!!\n \n"
<https://greensock.com/forums/topic/20011-getchildren-on-timeline-with-stagger/#comment-93255>