Sha256: bf6eb07ed8eeb7b06e6b9ef3cd36f2e3c9d35d20ecc364c430642ec959c1e9bd

Contents?: true

Size: 369 Bytes

Versions: 2

Compression:

Stored size: 369 Bytes

Contents

'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)) ||
			(toString.call(x) === id) || (x[toStringTagSymbol] === 'Set'))) || false;
};

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
eslint_node_modules-1.6.0.1 vendor/node_modules/eslint/node_modules/escope/node_modules/es6-map/node_modules/es6-set/is-set.js
eslint_node_modules-1.6.0 vendor/node_modules/eslint/node_modules/escope/node_modules/es6-map/node_modules/es6-set/is-set.js