8 lines
406 B
JavaScript
8 lines
406 B
JavaScript
var metadata = require('./_metadata')
|
|
, anObject = require('./_an-object')
|
|
, toMetaKey = metadata.key
|
|
, ordinaryDefineOwnMetadata = metadata.set;
|
|
|
|
metadata.exp({defineMetadata: function defineMetadata(metadataKey, metadataValue, target, targetKey){
|
|
ordinaryDefineOwnMetadata(metadataKey, metadataValue, anObject(target), toMetaKey(targetKey));
|
|
}}); |