is-native-implemented.js 286 B

12345678910
  1. // Exports true if environment provides native `WeakMap` implementation,
  2. // whatever that is.
  3. 'use strict';
  4. module.exports = (function () {
  5. if (typeof WeakMap === 'undefined') return false;
  6. return (Object.prototype.toString.call(WeakMap.prototype) ===
  7. '[object WeakMap]');
  8. }());