• Given a list of objects, extract property 'prop' from each object to create a new list

    Parameters

    • prop: string

      The property to extract

    • list: any[]

      The list to act upon

    Returns unknown[]