mirror of
https://github.com/JasonYANG170/IOTConnect-Web.git
synced 2024-11-23 12:16:29 +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
|
|
);
|
|
};
|