Sha256: a1f46a1539ad4d4527e559e229196f5e39bddcacbddf3183e461135b4d477403

Contents?: true

Size: 677 Bytes

Versions: 64

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

64 entries across 29 versions & 8 rubygems

Version Path
immosquare-cleaner-0.1.51 node_modules/core-js/library/modules/es7.reflect.has-metadata.js
immosquare-cleaner-0.1.51 node_modules/core-js/modules/es7.reflect.has-metadata.js
immosquare-cleaner-0.1.50 node_modules/core-js/modules/es7.reflect.has-metadata.js
immosquare-cleaner-0.1.50 node_modules/core-js/library/modules/es7.reflect.has-metadata.js
immosquare-cleaner-0.1.49 node_modules/core-js/library/modules/es7.reflect.has-metadata.js
immosquare-cleaner-0.1.49 node_modules/core-js/modules/es7.reflect.has-metadata.js
immosquare-cleaner-0.1.48 node_modules/core-js/library/modules/es7.reflect.has-metadata.js
immosquare-cleaner-0.1.48 node_modules/core-js/modules/es7.reflect.has-metadata.js
immosquare-cleaner-0.1.47 node_modules/core-js/library/modules/es7.reflect.has-metadata.js
immosquare-cleaner-0.1.47 node_modules/core-js/modules/es7.reflect.has-metadata.js
immosquare-cleaner-0.1.46 node_modules/core-js/library/modules/es7.reflect.has-metadata.js
immosquare-cleaner-0.1.46 node_modules/core-js/modules/es7.reflect.has-metadata.js
immosquare-cleaner-0.1.45 node_modules/core-js/library/modules/es7.reflect.has-metadata.js
immosquare-cleaner-0.1.45 node_modules/core-js/modules/es7.reflect.has-metadata.js
immosquare-cleaner-0.1.44 node_modules/core-js/library/modules/es7.reflect.has-metadata.js
immosquare-cleaner-0.1.44 node_modules/core-js/modules/es7.reflect.has-metadata.js
immosquare-cleaner-0.1.43 node_modules/core-js/library/modules/es7.reflect.has-metadata.js
immosquare-cleaner-0.1.43 node_modules/core-js/modules/es7.reflect.has-metadata.js
immosquare-cleaner-0.1.42 node_modules/core-js/library/modules/es7.reflect.has-metadata.js
immosquare-cleaner-0.1.42 node_modules/core-js/modules/es7.reflect.has-metadata.js