The College class, containing all the neccessary methods

jez020

Constructors

Properties

collegeData: collegeDataInterface = collegedata

Get the original college data in JSON

Hipo

countryCode: string[] = ...

All the 2 characters country codes

jez020

Methods

  • Get the colleges with the same name as the input

    Parameters

    • name: string = "University of California, San Diego"

      The name of the college, case sensitive

    Returns collegeDataInterface

    An array of objects containing the college data

    jez020

  • Get all the colleges based on a country code

    Parameters

    • regionCode: string[] = ...

      an array of 2 letters country codes to include in the data

    Returns collegeDataInterface

    Returns an array of colleges belonging to the countries provided

    jez020