Sensemaking Tools Documentation
    Preparing search index...

    Function isTopicType

    • Checks if the data is a Topic object.

      It has the side effect of changing the type of the object to Topic if applicable.

      Parameters

      • data: any

        the object to check

      Returns data is { name: string } | { name: string; subtopics: { name: string }[] }

      • true if the object is a Topic