Sha256: b1a8069128d6814e5dc7d514ae497cd266ea1a78446b56b920808de3713cb51e

Contents?: true

Size: 403 Bytes

Versions: 28

Compression:

Stored size: 403 Bytes

Contents

"use strict";

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

  , objToString = Object.prototype.toString
  , id = "[object WeakMap]"
  , Global = typeof WeakMap === "undefined" ? null : WeakMap;

module.exports = function (value) {
	return (value && ((Global && (value instanceof Global)) ||
			(objToString.call(value) === id) || (value[toStringTagSymbol] === "WeakMap"))) ||
			false;
};

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
govuk_publishing_components-18.0.0 node_modules/es6-weak-map/is-weak-map.js
govuk_publishing_components-17.21.0 node_modules/es6-weak-map/is-weak-map.js
govuk_publishing_components-17.20.0 node_modules/es6-weak-map/is-weak-map.js
govuk_publishing_components-17.19.1 node_modules/es6-weak-map/is-weak-map.js
govuk_publishing_components-17.19.0 node_modules/es6-weak-map/is-weak-map.js
govuk_publishing_components-17.18.0 node_modules/es6-weak-map/is-weak-map.js
govuk_publishing_components-17.17.0 node_modules/es6-weak-map/is-weak-map.js
govuk_publishing_components-17.16.0 node_modules/es6-weak-map/is-weak-map.js
govuk_publishing_components-17.15.0 node_modules/es6-weak-map/is-weak-map.js
govuk_publishing_components-17.14.0 node_modules/es6-weak-map/is-weak-map.js
govuk_publishing_components-17.13.0 node_modules/es6-weak-map/is-weak-map.js
govuk_publishing_components-17.12.2 node_modules/es6-weak-map/is-weak-map.js
govuk_publishing_components-17.12.1 node_modules/es6-weak-map/is-weak-map.js
govuk_publishing_components-17.12.0 node_modules/es6-weak-map/is-weak-map.js
govuk_publishing_components-17.11.0 node_modules/es6-weak-map/is-weak-map.js
govuk_publishing_components-17.10.0 node_modules/es6-weak-map/is-weak-map.js
govuk_publishing_components-17.9.0 node_modules/es6-weak-map/is-weak-map.js
govuk_publishing_components-17.8.0 node_modules/es6-weak-map/is-weak-map.js
govuk_publishing_components-17.7.0 node_modules/es6-weak-map/is-weak-map.js
govuk_publishing_components-17.6.1 node_modules/es6-weak-map/is-weak-map.js