Sha256: a1f46a1539ad4d4527e559e229196f5e39bddcacbddf3183e461135b4d477403

Contents?: true

Size: 677 Bytes

Versions: 66

Compression:

Stored size: 677 Bytes

Contents

var metadata = require('./_metadata');
var anObject = require('./_an-object');
var getPrototypeOf = require('./_object-gpo');
var ordinaryHasOwnMetadata = metadata.has;
var 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

66 entries across 30 versions & 8 rubygems

Version Path
condenser-0.0.5 lib/condenser/processors/node_modules/core-js/library/modules/es7.reflect.has-metadata.js
condenser-0.0.5 lib/condenser/processors/node_modules/core-js/modules/es7.reflect.has-metadata.js
optimacms-0.4.3 spec/dummy/node_modules/core-js/library/modules/es7.reflect.has-metadata.js
optimacms-0.4.3 spec/dummy/node_modules/core-js/modules/es7.reflect.has-metadata.js
optimacms-0.4.2 spec/dummy/node_modules/core-js/modules/es7.reflect.has-metadata.js
optimacms-0.4.2 spec/dummy/node_modules/core-js/library/modules/es7.reflect.has-metadata.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/core-js/library/modules/es7.reflect.has-metadata.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/core-js/modules/es7.reflect.has-metadata.js
lux_assets-0.2.11 ./node_modules/core-js/library/modules/es7.reflect.has-metadata.js
lux_assets-0.2.11 ./node_modules/core-js/modules/es7.reflect.has-metadata.js
lux_assets-0.2.9 ./node_modules/core-js/modules/es7.reflect.has-metadata.js
lux_assets-0.2.9 ./node_modules/core-js/library/modules/es7.reflect.has-metadata.js
lux_assets-0.2.4 ./node_modules/core-js/library/modules/es7.reflect.has-metadata.js
lux_assets-0.2.4 ./node_modules/core-js/modules/es7.reflect.has-metadata.js
lux_assets-0.2.2 ./node_modules/core-js/library/modules/es7.reflect.has-metadata.js
lux_assets-0.2.2 ./node_modules/core-js/modules/es7.reflect.has-metadata.js
lux_assets-0.2.1 ./node_modules/core-js/modules/es7.reflect.has-metadata.js
lux_assets-0.2.1 ./node_modules/core-js/library/modules/es7.reflect.has-metadata.js
locomotivecms-3.4.0 app/javascript/node_modules/core-js/modules/es7.reflect.has-metadata.js
locomotivecms-3.4.0 app/javascript/node_modules/core-js/library/modules/es7.reflect.has-metadata.js