Version 1
[yaffs-website] / node_modules / core-js / library / modules / es7.reflect.metadata.js
1 var metadata                  = require('./_metadata')
2   , anObject                  = require('./_an-object')
3   , aFunction                 = require('./_a-function')
4   , toMetaKey                 = metadata.key
5   , ordinaryDefineOwnMetadata = metadata.set;
6
7 metadata.exp({metadata: function metadata(metadataKey, metadataValue){
8   return function decorator(target, targetKey){
9     ordinaryDefineOwnMetadata(
10       metadataKey, metadataValue,
11       (targetKey !== undefined ? anObject : aFunction)(target),
12       toMetaKey(targetKey)
13     );
14   };
15 }});