Sha256: bd7baeaddf2f916e50d6c819ea3d8356c0beaa194fbd2431d596b35c243a2946

Contents?: true

Size: 704 Bytes

Versions: 66

Compression:

Stored size: 704 Bytes

Contents

var metadata = require('./_metadata');
var anObject = require('./_an-object');
var toMetaKey = metadata.key;
var getOrCreateMetadataMap = metadata.map;
var store = metadata.store;

metadata.exp({ deleteMetadata: function deleteMetadata(metadataKey, target /* , targetKey */) {
  var targetKey = arguments.length < 3 ? undefined : toMetaKey(arguments[2]);
  var metadataMap = getOrCreateMetadataMap(anObject(target), targetKey, false);
  if (metadataMap === undefined || !metadataMap['delete'](metadataKey)) return false;
  if (metadataMap.size) return true;
  var targetMetadata = store.get(target);
  targetMetadata['delete'](targetKey);
  return !!targetMetadata.size || store['delete'](target);
} });

Version data entries

66 entries across 30 versions & 8 rubygems

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