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

Function __guard__

app/views/play/SpectateView.js:494–496  ·  view source on GitHub ↗
(value, transform)

Source from the content-addressed store, hash-verified

492})())
493
494function __guard__ (value, transform) {
495 return (typeof value !== 'undefined' && value !== null) ? transform(value) : undefined
496}
497function __guardMethod__ (obj, methodName, transform) {
498 if (typeof obj !== 'undefined' && obj !== null && typeof obj[methodName] === 'function') {
499 return transform(obj, methodName)

Callers 1

initSpectateCodeMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected