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

Function props

static/word2md/mammoth.browser.js:8088–8105  ·  view source on GitHub ↗
(promises)

Source from the content-addressed store, hash-verified

8086};
8087
8088function props(promises) {
8089 var ret;
8090 var castValue = tryConvertToPromise(promises);
8091
8092 if (!isObject(castValue)) {
8093 return apiRejection("cannot await properties of a non-object\u000a\u000a See http://goo.gl/MqrFmX\u000a");
8094 } else if (castValue instanceof Promise) {
8095 ret = castValue._then(
8096 Promise.props, undefined, undefined, undefined, undefined);
8097 } else {
8098 ret = new PropertiesPromiseArray(castValue).promise();
8099 }
8100
8101 if (castValue instanceof Promise) {
8102 ret._propagateFrom(castValue, 2);
8103 }
8104 return ret;
8105}
8106
8107Promise.prototype.props = function () {
8108 return props(this);

Callers 1

mammoth.browser.jsFile · 0.70

Calls 3

tryConvertToPromiseFunction · 0.70
isObjectFunction · 0.70
apiRejectionFunction · 0.70

Tested by

no test coverage detected