MCPcopy Create free account
hub / github.com/TruthHun/BookStack / ensureMethod

Function ensureMethod

static/word2md/mammoth.browser.js:4353–4362  ·  view source on GitHub ↗
(obj, methodName)

Source from the content-addressed store, hash-verified

4351}
4352
4353function ensureMethod(obj, methodName) {
4354 var fn;
4355 if (obj != null) fn = obj[methodName];
4356 if (typeof fn !== "function") {
4357 var message = "Object " + util.classString(obj) + " has no method '" +
4358 util.toString(methodName) + "'";
4359 throw new Promise.TypeError(message);
4360 }
4361 return fn;
4362}
4363
4364function caller(obj) {
4365 var methodName = this.pop();

Callers 1

callerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected