is-native-implemented.js 273 B

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