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