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

Function PropertiesPromiseArray

static/word2md/mammoth.browser.js:8036–8055  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

8034};
8035
8036function PropertiesPromiseArray(obj) {
8037 var isMap = false;
8038 var entries;
8039 if (Es6Map !== undefined && obj instanceof Es6Map) {
8040 entries = mapToEntries(obj);
8041 isMap = true;
8042 } else {
8043 var keys = es5.keys(obj);
8044 var len = keys.length;
8045 entries = new Array(len * 2);
8046 for (var i = 0; i < len; ++i) {
8047 var key = keys[i];
8048 entries[i] = obj[key];
8049 entries[i + len] = key;
8050 }
8051 }
8052 this.constructor$(entries);
8053 this._isMap = isMap;
8054 this._init$(undefined, -3);
8055}
8056util.inherits(PropertiesPromiseArray, PromiseArray);
8057
8058PropertiesPromiseArray.prototype._init = function () {};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected