Sha256: 78dcf5902c367695ef04e9c3488716030f8a8a2cac03afa5fd6ef5f6c3cea44d

Contents?: true

Size: 399 Bytes

Versions: 51

Compression:

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

Version data entries

51 entries across 51 versions & 6 rubygems

Version Path
govuk_publishing_components-17.6.0 node_modules/es6-set/is-set.js
govuk_publishing_components-17.5.0 node_modules/es6-set/is-set.js
govuk_publishing_components-17.4.0 node_modules/es6-set/is-set.js
govuk_publishing_components-17.3.0 node_modules/es6-set/is-set.js
govuk_publishing_components-17.2.0 node_modules/es6-set/is-set.js
govuk_publishing_components-17.1.1 node_modules/es6-set/is-set.js
govuk_publishing_components-17.1.0 node_modules/es6-set/is-set.js
govuk_publishing_components-17.0.0 node_modules/es6-set/is-set.js
govuk_publishing_components-16.29.0 node_modules/es6-set/is-set.js
govuk_publishing_components-16.28.0 node_modules/es6-set/is-set.js
govuk_publishing_components-16.27.1 node_modules/es6-set/is-set.js
govuk_publishing_components-16.27.0 node_modules/es6-set/is-set.js
govuk_publishing_components-16.26.0 node_modules/es6-set/is-set.js
govuk_publishing_components-16.25.0 node_modules/es6-set/is-set.js
govuk_publishing_components-16.24.0 node_modules/es6-set/is-set.js
govuk_publishing_components-16.23.0 node_modules/es6-set/is-set.js
govuk_publishing_components-16.22.0 node_modules/es6-set/is-set.js
govuk_publishing_components-16.21.0 node_modules/es6-set/is-set.js
govuk_publishing_components-16.20.1 node_modules/es6-set/is-set.js
govuk_publishing_components-16.20.0 node_modules/es6-set/is-set.js