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

Function __guard__

app/core/utils.js:2095–2097  ·  view source on GitHub ↗
(value, transform)

Source from the content-addressed store, hash-verified

2093}
2094
2095function __guard__ (value, transform) {
2096 return (typeof value !== 'undefined' && value !== null) ? transform(value) : undefined
2097}
2098function __range__ (left, right, inclusive) {
2099 const range = []
2100 const ascending = left < right

Callers 7

utils.jsFile · 0.70
inEUFunction · 0.70
countryNameToCodeFunction · 0.70
extractPlayerCodeTagFunction · 0.70
stripIndentationFunction · 0.70
isIDFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected