source: imaps-frontend/node_modules/core-js/modules/esnext.reflect.get-own-metadata.js

main
Last change on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 688 bytes
RevLine 
[79a0317]1'use strict';
2// TODO: Remove from `core-js@4`
3var $ = require('../internals/export');
4var ReflectMetadataModule = require('../internals/reflect-metadata');
5var anObject = require('../internals/an-object');
6
7var ordinaryGetOwnMetadata = ReflectMetadataModule.get;
8var toMetadataKey = ReflectMetadataModule.toKey;
9
10// `Reflect.getOwnMetadata` method
11// https://github.com/rbuckton/reflect-metadata
12$({ target: 'Reflect', stat: true }, {
13 getOwnMetadata: function getOwnMetadata(metadataKey, target /* , targetKey */) {
14 var targetKey = arguments.length < 3 ? undefined : toMetadataKey(arguments[2]);
15 return ordinaryGetOwnMetadata(metadataKey, anObject(target), targetKey);
16 }
17});
Note: See TracBrowser for help on using the repository browser.