Opal-Estate-Pro/node_modules/core-js/library/modules/es7.reflect.get-own-metadata-keys.js
2019-09-13 11:27:52 +07:00

9 lines
364 B
JavaScript

var metadata = require('./_metadata');
var anObject = require('./_an-object');
var ordinaryOwnMetadataKeys = metadata.keys;
var toMetaKey = metadata.key;
metadata.exp({ getOwnMetadataKeys: function getOwnMetadataKeys(target /* , targetKey */) {
return ordinaryOwnMetadataKeys(anObject(target), arguments.length < 2 ? undefined : toMetaKey(arguments[1]));
} });