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-18.0.0 node_modules/es6-set/is-set.js
govuk_publishing_components-17.21.0 node_modules/es6-set/is-set.js
govuk_publishing_components-17.20.0 node_modules/es6-set/is-set.js
govuk_publishing_components-17.19.1 node_modules/es6-set/is-set.js
govuk_publishing_components-17.19.0 node_modules/es6-set/is-set.js
govuk_publishing_components-17.18.0 node_modules/es6-set/is-set.js
govuk_publishing_components-17.17.0 node_modules/es6-set/is-set.js
govuk_publishing_components-17.16.0 node_modules/es6-set/is-set.js
govuk_publishing_components-17.15.0 node_modules/es6-set/is-set.js
govuk_publishing_components-17.14.0 node_modules/es6-set/is-set.js
govuk_publishing_components-17.13.0 node_modules/es6-set/is-set.js
govuk_publishing_components-17.12.2 node_modules/es6-set/is-set.js
govuk_publishing_components-17.12.1 node_modules/es6-set/is-set.js
govuk_publishing_components-17.12.0 node_modules/es6-set/is-set.js
govuk_publishing_components-17.11.0 node_modules/es6-set/is-set.js
govuk_publishing_components-17.10.0 node_modules/es6-set/is-set.js
govuk_publishing_components-17.9.0 node_modules/es6-set/is-set.js
govuk_publishing_components-17.8.0 node_modules/es6-set/is-set.js
govuk_publishing_components-17.7.0 node_modules/es6-set/is-set.js
govuk_publishing_components-17.6.1 node_modules/es6-set/is-set.js