• Flattens the object msgStructure and returns the indices of names given in msgNames

    Parameters

    • msgNames: string[]
    • msgStructure: any

    Returns number[]

    Returns in same order as given names in msgNames