is-native-implemented.js 263 B

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