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