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

Method comparator

app/collections/Prepaids.js:29–34  ·  view source on GitHub ↗
(prepaid)

Source from the content-addressed store, hash-verified

27 }
28
29 comparator (prepaid) {
30 return [
31 prepaid.get('type') === 'course' ? 'C' : 'S',
32 prepaid.get('endDate')
33 ].toString()
34 }
35
36 totalMaxRedeemers () {
37 return sum((Array.from(this.models).map((prepaid) => prepaid.get('maxRedeemers')))) || 0

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected