Function flatten

  • Flattens an object into a single-level object with delimited keys.

    Parameters

    • object: object

      The object to flatten

    • options: FlatCopyOptions = {}

      Configuration options for flattening

    Returns Record<string, any>

    A single-level object with flattened keys

    Will throw an error if the input is not an object