Opal-Estate-Pro/node_modules/core-js/library/modules/es7.reflect.has-own-metadata.js

10 lines
384 B
JavaScript
Raw Normal View History

2019-09-13 04:44:33 +02:00
var metadata = require('./_metadata');
var anObject = require('./_an-object');
var ordinaryHasOwnMetadata = metadata.has;
var toMetaKey = metadata.key;
metadata.exp({ hasOwnMetadata: function hasOwnMetadata(metadataKey, target /* , targetKey */) {
return ordinaryHasOwnMetadata(metadataKey, anObject(target)
, arguments.length < 3 ? undefined : toMetaKey(arguments[2]));
} });