Function extractListElement

  • Extracts the Data of the given List

    Example:

    const list = [{"id":1, "data":"a"},{"id":2, "data":"b"}]
    const res = extractListElement(list, "data") // => ["a","b"]

    Export

    Returns

    List only containing the Elements.

    Parameters

    • list: any[]

      List, where data should be extracted

    • path: string

      path pointing to the Data in the List

    Returns any[]

Generated using TypeDoc