Function flatten

  • Flattens an object with the paths for keys.

    Parameters

    • target: any

      The object to flatten.

    • Optionalopts: FlattenOptions

      Options for flattening the object.

    Returns { [key: string]: any }