Sha256: ae01c488deaac45383ed1881fada4105436e9c9aad822d53a14385acaefc3109

Contents?: true

Size: 713 Bytes

Versions: 320

Compression:

Stored size: 713 Bytes

Contents

var metadata               = require('./_metadata')
  , anObject               = require('./_an-object')
  , getPrototypeOf         = require('./_object-gpo')
  , ordinaryHasOwnMetadata = metadata.has
  , toMetaKey              = metadata.key;

var ordinaryHasMetadata = function(MetadataKey, O, P){
  var hasOwn = ordinaryHasOwnMetadata(MetadataKey, O, P);
  if(hasOwn)return true;
  var parent = getPrototypeOf(O);
  return parent !== null ? ordinaryHasMetadata(MetadataKey, parent, P) : false;
};

metadata.exp({hasMetadata: function hasMetadata(metadataKey, target /*, targetKey */){
  return ordinaryHasMetadata(metadataKey, anObject(target), arguments.length < 3 ? undefined : toMetaKey(arguments[2]));
}});

Version data entries

320 entries across 8 versions & 3 rubygems

Version Path
affiliator-0.2.1 node_modules/core-js/library/modules/es7.reflect.has-metadata.js
affiliator-0.2.1 node_modules/core-js/modules/es7.reflect.has-metadata.js
lanes-0.8.0 node_modules/babel-register/node_modules/core-js/modules/es7.reflect.has-metadata.js
lanes-0.8.0 node_modules/babel-runtime/node_modules/core-js/library/modules/es7.reflect.has-metadata.js
lanes-0.8.0 node_modules/babel-runtime/node_modules/core-js/modules/es7.reflect.has-metadata.js
lanes-0.8.0 node_modules/babel-register/node_modules/core-js/library/modules/es7.reflect.has-metadata.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-get-function-arity/node_modules/core-js/modules/es7.reflect.has-metadata.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-function-name/node_modules/core-js/library/modules/es7.reflect.has-metadata.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-hoist-variables/node_modules/core-js/library/modules/es7.reflect.has-metadata.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-call-delegate/node_modules/core-js/library/modules/es7.reflect.has-metadata.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-generator/node_modules/core-js/modules/es7.reflect.has-metadata.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-define-map/node_modules/core-js/modules/es7.reflect.has-metadata.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-function-name/node_modules/core-js/modules/es7.reflect.has-metadata.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-get-function-arity/node_modules/core-js/library/modules/es7.reflect.has-metadata.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-helper-call-delegate/node_modules/core-js/modules/es7.reflect.has-metadata.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-core/node_modules/core-js/library/modules/es7.reflect.has-metadata.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-core/node_modules/core-js/modules/es7.reflect.has-metadata.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-code-frame/node_modules/core-js/library/modules/es7.reflect.has-metadata.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-code-frame/node_modules/core-js/modules/es7.reflect.has-metadata.js
babel-schmooze-sprockets-0.1.3 node_modules/babel-generator/node_modules/core-js/library/modules/es7.reflect.has-metadata.js