Sha256: 96cf561dca587b578321ceee7cf2d3c0076d8e0b15bbf5b0d949e4b04ae46213

Contents?: true

Size: 1.05 KB

Versions: 51

Compression:

Stored size: 1.05 KB

Contents

'use strict';

module.exports = function () {
	var map, iterator, result;
	if (typeof Map !== 'function') return false;
	try {
		// WebKit doesn't support arguments and crashes
		map = new Map([['raz', 'one'], ['dwa', 'two'], ['trzy', 'three']]);
	} catch (e) {
		return false;
	}
	if (String(map) !== '[object Map]') return false;
	if (map.size !== 3) return false;
	if (typeof map.clear !== 'function') return false;
	if (typeof map.delete !== 'function') return false;
	if (typeof map.entries !== 'function') return false;
	if (typeof map.forEach !== 'function') return false;
	if (typeof map.get !== 'function') return false;
	if (typeof map.has !== 'function') return false;
	if (typeof map.keys !== 'function') return false;
	if (typeof map.set !== 'function') return false;
	if (typeof map.values !== 'function') return false;

	iterator = map.entries();
	result = iterator.next();
	if (result.done !== false) return false;
	if (!result.value) return false;
	if (result.value[0] !== 'raz') return false;
	if (result.value[1] !== 'one') return false;

	return true;
};

Version data entries

51 entries across 51 versions & 6 rubygems

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