• Flatten a possibly multi-dimensional object to a one-dimensional one by converting all nested keys to dot notation

    Parameters

    • obj: object

      The object to flatten

    • Optional _d: number = 0

      Track the recursion depth to prevent overflow

    Returns object

    A flattened object