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

Function __guardMethod__

app/core/Router.js:859–865  ·  view source on GitHub ↗
(obj, methodName, transform)

Source from the content-addressed store, hash-verified

857})())
858
859function __guardMethod__ (obj, methodName, transform) {
860 if (typeof obj !== 'undefined' && obj !== null && typeof obj[methodName] === 'function') {
861 return transform(obj, methodName)
862 } else {
863 return undefined
864 }
865}

Callers 1

closeCurrentViewMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected