Fakultas Ilmu Komputer UI

Commit 0e45f73a authored by Farid Wajdi's avatar Farid Wajdi
Browse files

Fix element in set check

parent 04030356
......@@ -2,9 +2,8 @@ function getCourseSemester(courseId, courseGroup) {
for (var key in courseGroup) {
// skip loop if the property is from prototype
if (!courseGroup.hasOwnProperty(key)) continue;
var courses = courseGroup[key];
if (courseId in courses) {
if (courses.has(courseId)) {
return key
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment