function returnRoleID(role) {
    let id
    roleObj.forEach(element => {
        if (element.title == role) id = element.id
    })
    return id
}
// Changes the Role and Department words into their respective ID numbers
Changes the Role and Department words into their respective ID numbers
Changes the Role and Department words into their respective ID numbers
function returnRoleID(role) {
    let id
    roleObj.forEach(element => {
        if (element.title == role) id = element.id
    })
    return id
}
function returnRoleID ( role ) { let id roleObj . forEach ( element => { if ( element . title == role ) id = element . id } ) return id }
Changes the Role and Department words into their respective ID numbers
Changes the Role and Department words into their respective ID numbers