Function flattenObject

  • Flatten nested object

    Parameters

    • obj: any
    • prefix: string = ''

    Returns Record<string, any>