Sha256: 5a53e2855b15f4e5e276967c46ac056ef8091b4da2d30afc194b18ec7d8cfafb

Contents?: true

Size: 379 Bytes

Versions: 39

Compression:

Stored size: 379 Bytes

Contents

'use strict';

var toStringTagSymbol = require('es6-symbol').toStringTag

  , toString = Object.prototype.toString
  , id = '[object WeakMap]'
  , Global = (typeof WeakMap === 'undefined') ? null : WeakMap;

module.exports = function (x) {
	return (x && ((Global && (x instanceof Global)) ||
			(toString.call(x) === id) || (x[toStringTagSymbol] === 'WeakMap'))) ||
			false;
};

Version data entries

39 entries across 32 versions & 8 rubygems

Version Path
govuk_publishing_components-16.29.0 node_modules/es6-weak-map/is-weak-map.js
govuk_publishing_components-16.28.0 node_modules/es6-weak-map/is-weak-map.js
govuk_publishing_components-16.27.1 node_modules/es6-weak-map/is-weak-map.js
govuk_publishing_components-16.27.0 node_modules/es6-weak-map/is-weak-map.js
govuk_publishing_components-16.26.0 node_modules/es6-weak-map/is-weak-map.js
govuk_publishing_components-16.25.0 node_modules/es6-weak-map/is-weak-map.js
govuk_publishing_components-16.24.0 node_modules/es6-weak-map/is-weak-map.js
govuk_publishing_components-16.23.0 node_modules/es6-weak-map/is-weak-map.js
govuk_publishing_components-16.22.0 node_modules/es6-weak-map/is-weak-map.js
govuk_publishing_components-16.21.0 node_modules/es6-weak-map/is-weak-map.js
govuk_publishing_components-16.20.1 node_modules/es6-weak-map/is-weak-map.js
govuk_publishing_components-16.20.0 node_modules/es6-weak-map/is-weak-map.js
govuk_publishing_components-16.19.0 node_modules/es6-weak-map/is-weak-map.js
govuk_publishing_components-16.18.0 node_modules/es6-weak-map/is-weak-map.js
govuk_publishing_components-16.17.0 node_modules/es6-weak-map/is-weak-map.js
optimacms-0.4.3 spec/dummy/node_modules/es6-weak-map/is-weak-map.js
optimacms-0.4.2 spec/dummy/node_modules/es6-weak-map/is-weak-map.js
cortex-0.1.3 spec/dummy/node_modules/es6-weak-map/is-weak-map.js
guard-sass-lint-0.1.2 node_modules/es6-weak-map/is-weak-map.js
guard-sass-lint-0.1.1 node_modules/es6-weak-map/is-weak-map.js