MCPcopy Create free account
hub / github.com/feiyu563/PrometheusAlert / fastKey

Function fastKey

static/plugins/pdfmake/pdfmake.js:38035–38047  ·  view source on GitHub ↗
(it, create)

Source from the content-addressed store, hash-verified

38033};
38034
38035var fastKey = function (it, create) {
38036 // return a primitive with prefix
38037 if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
38038 if (!hasOwn(it, METADATA)) {
38039 // can't set metadata to uncaught frozen object
38040 if (!isExtensible(it)) return 'F';
38041 // not necessary to add metadata
38042 if (!create) return 'E';
38043 // add missing metadata
38044 setMetadata(it);
38045 // return object ID
38046 } return it[METADATA].objectID;
38047};
38048
38049var getWeakData = function (it, create) {
38050 if (!hasOwn(it, METADATA)) {

Callers 2

defineFunction · 0.85
getEntryFunction · 0.85

Calls 2

isObjectFunction · 0.70
setMetadataFunction · 0.70

Tested by

no test coverage detected