All Downloads are FREE. Search and download functionalities are using the official Maven repository.

node_modules.core-js.modules.es7.reflect.metadata.js Maven / Gradle / Ivy

The newest version!
var $metadata = require('./_metadata');
var anObject = require('./_an-object');
var aFunction = require('./_a-function');
var toMetaKey = $metadata.key;
var ordinaryDefineOwnMetadata = $metadata.set;

$metadata.exp({ metadata: function metadata(metadataKey, metadataValue) {
  return function decorator(target, targetKey) {
    ordinaryDefineOwnMetadata(
      metadataKey, metadataValue,
      (targetKey !== undefined ? anObject : aFunction)(target),
      toMetaKey(targetKey)
    );
  };
} });




© 2015 - 2024 Weber Informatics LLC | Privacy Policy