wallet-core/node_modules/core-js/modules/es7.reflect.define-metadata.js
2017-05-28 00:40:43 +02:00

8 lines
406 B
JavaScript

var metadata = require('./_metadata')
, anObject = require('./_an-object')
, toMetaKey = metadata.key
, ordinaryDefineOwnMetadata = metadata.set;
metadata.exp({defineMetadata: function defineMetadata(metadataKey, metadataValue, target, targetKey){
ordinaryDefineOwnMetadata(metadataKey, metadataValue, anObject(target), toMetaKey(targetKey));
}});