UNPKG

@scu-xiaochuan/scu-pecourse-utils

Version:

14 lines 386 B
export function findTeacher(findTeacherName, courses) { for (const course of courses) { const { id, teacherName, teacherUid } = course; if (teacherName === findTeacherName) { return { teacherName, courseId: id, teacherUid, }; } } return null; } //# sourceMappingURL=utils.js.map