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

Function __guardMethod__

app/views/play/level/modal/VictoryModal.js:154–160  ·  view source on GitHub ↗
(obj, methodName, transform)

Source from the content-addressed store, hash-verified

152})())
153
154function __guardMethod__ (obj, methodName, transform) {
155 if (typeof obj !== 'undefined' && obj !== null && typeof obj[methodName] === 'function') {
156 return transform(obj, methodName)
157 } else {
158 return undefined
159 }
160}

Callers 1

afterInsertMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected