Skip to content

Commit

Permalink
Fix Set detection
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Nov 10, 2015
1 parent a1d973f commit 3f84b7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion is-set.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ var toString = Object.prototype.toString
, Global = (typeof Set === 'undefined') ? null : Set;

module.exports = function (x) {
return (x && ((Global && (x instanceof Global)) ||
return (x && ((Global && ((x instanceof Global) || (x === Global.prototype))) ||
(toString.call(x) === id) || (x[toStringTagSymbol] === 'Set'))) || false;
};

0 comments on commit 3f84b7e

Please sign in to comment.