• flatten till 2nd last key where the last key is an array of un-nested object

    Parameters

    • obj: object

    Returns [string[], object[][]]