19e47929356ab6b9c8f3be2f7a81d98e1c0fb0ab
[platform/framework/web/crosswalk-tizen.git] /
1 'use strict';
2
3 var toString          = Object.prototype.toString
4   , toStringTagSymbol = require('es6-symbol').toStringTag
5
6   , id = '[object Set]'
7   , Global = (typeof Set === 'undefined') ? null : Set;
8
9 module.exports = function (x) {
10         return (x && ((Global && (x instanceof Global)) ||
11                         (toString.call(x) === id) || (x[toStringTagSymbol] === 'Set'))) || false;
12 };