📄 a-weak-map.js
/home/palash/git/site/node_modules/core-js-pure/internals/a-weak-map.js
Language: js • Lines: 10
'use strict';
var tryToString = require('../internals/try-to-string');

var $TypeError = TypeError;

// Perform ? RequireInternalSlot(M, [[WeakMapData]])
module.exports = function (it) {
  if (typeof it == 'object' && 'has' in it && 'get' in it && 'set' in it && 'delete' in it) return it;
  throw new $TypeError(tryToString(it) + ' is not a weakmap');
};