Front end of the Slack clone application.

is-map.js 390B

12345678910111213
  1. 'use strict';
  2. var toStringTagSymbol = require('es6-symbol').toStringTag
  3. , toString = Object.prototype.toString
  4. , id = '[object Map]'
  5. , Global = (typeof Map === 'undefined') ? null : Map;
  6. module.exports = function (x) {
  7. return (x && ((Global && ((x instanceof Global) || (x === Global.prototype))) ||
  8. (toString.call(x) === id) || (x[toStringTagSymbol] === 'Map'))) || false;
  9. };