MCPcopy Create free account
hub / github.com/codecombat/codecombat / needsPractice

Function needsPractice

app/core/utils.js:1087–1091  ·  view source on GitHub ↗
(playtime, threshold)

Source from the content-addressed store, hash-verified

1085}
1086
1087const needsPractice = function (playtime, threshold) {
1088 if (playtime == null) { playtime = 0 }
1089 if (threshold == null) { threshold = 5 }
1090 return (playtime / 60) > threshold
1091}
1092
1093const sortAllCourses = courses => _.sortBy(courses, function (course) {
1094 // ._id can be from classroom.courses, otherwise it's probably .id

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected