wallet-core/node_modules/core-js/modules/es7.reflect.get-own-metadata-keys.js
2016-10-10 03:43:44 +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]));
}});