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

Function __guard__

app/core/initialize.js:436–438  ·  view source on GitHub ↗
(value, transform)

Source from the content-addressed store, hash-verified

434$(() => init())
435
436function __guard__ (value, transform) {
437 return (typeof value !== 'undefined' && value !== null) ? transform(value) : undefined
438}
439function __guardMethod__ (obj, methodName, transform) {
440 if (typeof obj !== 'undefined' && obj !== null && typeof obj[methodName] === 'function') {
441 return transform(obj, methodName)

Callers 1

setUpIOSLoggingFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected