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

Method totalMaxRedeemers

app/collections/Prepaids.js:36–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 }
35
36 totalMaxRedeemers () {
37 return sum((Array.from(this.models).map((prepaid) => prepaid.get('maxRedeemers')))) || 0
38 }
39
40 totalRedeemers () {
41 return sum((Array.from(this.models).map((prepaid) => _.size(prepaid.get('redeemers'))))) || 0

Callers 2

totalAvailableMethod · 0.95

Calls 2

sumFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected