mirror of https://github.com/jkjoy/sunpeiwen.git
10 lines
393 B
JavaScript
10 lines
393 B
JavaScript
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]));
|
|
} });
|