src/index.js
function getRoomSlots (semester, minRequestSpace = 1000, verbose = false, departments = []) {
    validateInput("semester", semester, [1, 2], "set");
    validateInput("minRequestSpace", minRequestSpace, [0, 100000], "range");
    validateInput("verbose", verbose, [true, false], "set");
    validateInput("departments", departments, "Array", "type");
    return scrapeRS(semester, verbose, minRequestSpace, departments);
}
function getRoomSlots (semester, minRequestSpace = 1000, verbose = false, departments = []) {
    validateInput("semester", semester, [1, 2], "set");
    validateInput("minRequestSpace", minRequestSpace, [0, 100000], "range");
    validateInput("verbose", verbose, [true, false], "set");
    validateInput("departments", departments, "Array", "type");
    return scrapeRS(semester, verbose, minRequestSpace, departments);
}
function getRoomSlots ( semester , minRequestSpace = 1000 , verbose = false , departments = [ ] ) { validateInput ( "semester" , semester , [ 1 , 2 ] , "set" ) ; validateInput ( "minRequestSpace" , minRequestSpace , [ 0 , 100000 ] , "range" ) ; validateInput ( "verbose" , verbose , [ true , false ] , "set" ) ; validateInput ( "departments" , departments , "Array" , "type" ) ; return scrapeRS ( semester , verbose , minRequestSpace , departments ) ; }
Returns an object containing all class sections with their weekday, time, room, building, and address
@param semester: the semester that the classes belong to
@param minRequestSpace: the minimum amount of time between requests to UBCs webserver in milliseconds
@param verbose: whether or not you want to see console.logs
@param departments: an optional list that if present will tell the scrapr to only scrape the given departments
Returns an object containing all class sections with their weekday time room building and address