wallet-core/node_modules/core-js/modules/es7.reflect.get-own-metadata-keys.js
2017-05-28 00:40:43 +02:00

8 lines
400 B
JavaScript

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