mirror of
https://github.com/JasonYANG170/IOTConnect-Web.git
synced 2024-11-23 20:26:28 +00:00
17 lines
458 B
JavaScript
17 lines
458 B
JavaScript
"use strict";
|
|
|
|
var objToString = Object.prototype.toString
|
|
, toStringTagSymbol = require("es6-symbol").toStringTag
|
|
, id = "[object Set]"
|
|
, Global = typeof Set === "undefined" ? null : Set;
|
|
|
|
module.exports = function (value) {
|
|
return (
|
|
(value &&
|
|
((Global && (value instanceof Global || value === Global.prototype)) ||
|
|
objToString.call(value) === id ||
|
|
value[toStringTagSymbol] === "Set")) ||
|
|
false
|
|
);
|
|
};
|