Function fromCsv

  • Parse a CSV string into an array of objects

    Type Parameters

    • T = any

    Parameters

    • csv: string

      String with CSV

    • hasHeaders: boolean = true

      First line of CSV contains headers

    Returns T[]

    Array of parsed objects