Show More
Commit Description:
merge
Commit Description:
merge
References:
File last commit:
Show/Diff file:
Action:
node_modules/es6-set/is-set.js | 12 lines | 399 B | application/javascript | JavascriptLexer |
'use strict';
var toString = Object.prototype.toString
, toStringTagSymbol = require('es6-symbol').toStringTag
, id = '[object Set]'
, Global = (typeof Set === 'undefined') ? null : Set;
module.exports = function (x) {
return (x && ((Global && ((x instanceof Global) || (x === Global.prototype))) ||
(toString.call(x) === id) || (x[toStringTagSymbol] === 'Set'))) || false;
};