• Convert an object to a CSV string

    Parameters

    • target: any[]

      Array of objects to create CSV from

    • flatten: boolean = true

      Should nested object be flattened or treated as values

    Returns string

    CSV string