MCPcopy Index your code
hub / github.com/codecombat/codecombat / courseSame

Function courseSame

app/core/utils.js:1942–1942  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

1940 const { LICENSE_PRESETS } = require('./constants')
1941 const numericalCourses = courses => courses.reduce((s, k) => s + courseNumericalStatus[k], 0)
1942 const courseSame = (a, b) => a.length === b.length && numericalCourses(a) === numericalCourses(b)
1943 if (includedCourseIDs) {
1944 const hsCourses = [...HACKSTACK_COURSE_IDS.filter(x => x !== allCourseIDs.HACKSTACK)]
1945 if (credit && courseSame(includedCourseIDs, hsCourses)) {

Callers 1

utils.jsFile · 0.85

Calls 1

numericalCoursesFunction · 0.85

Tested by

no test coverage detected