Spaces:
Runtime error
Runtime error
File size: 403 Bytes
b5ea024 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
"use strict";
var toStringTagSymbol = require("es6-symbol").toStringTag
, objToString = Object.prototype.toString
, id = "[object WeakMap]"
, Global = typeof WeakMap === "undefined" ? null : WeakMap;
module.exports = function (value) {
return (value && ((Global && (value instanceof Global)) ||
(objToString.call(value) === id) || (value[toStringTagSymbol] === "WeakMap"))) ||
false;
};
|