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

Function __guardMethod__

app/core/initialize.js:439–445  ·  view source on GitHub ↗
(obj, methodName, transform)

Source from the content-addressed store, hash-verified

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)
442 } else {
443 return undefined
444 }
445}

Callers 1

setUpIOSLoggingFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected