• Finds the common ancestor path between two states.

    Parameters

    • first: any

      The first state.

    • second: any

      The second state.

    Returns any[]

    Returns an array of state names in descending order, not including the root.