Sha256: 8bb3c026cca121263905a814124aa31a9fb9930b52d6835d7054086c33dcdd74

Contents?: true

Size: 481 Bytes

Versions: 47

Compression:

Stored size: 481 Bytes

Contents

"use strict";

var iteratorSymbol = require("es6-symbol").iterator;

module.exports = function () {
	var arr = ["foo", 1], iterator, result;
	if (typeof arr[iteratorSymbol] !== "function") return false;
	iterator = arr[iteratorSymbol]();
	if (!iterator) return false;
	if (typeof iterator.next !== "function") return false;
	result = iterator.next();
	if (!result) return false;
	if (result.value !== "foo") return false;
	if (result.done !== false) return false;
	return true;
};

Version data entries

47 entries across 47 versions & 3 rubygems

Version Path
govuk_publishing_components-16.20.0 node_modules/es5-ext/array/#/@@iterator/is-implemented.js
govuk_publishing_components-16.19.0 node_modules/es5-ext/array/#/@@iterator/is-implemented.js
govuk_publishing_components-16.18.0 node_modules/es5-ext/array/#/@@iterator/is-implemented.js
govuk_publishing_components-16.17.0 node_modules/es5-ext/array/#/@@iterator/is-implemented.js
optimacms-0.4.3 spec/dummy/node_modules/es5-ext/array/#/@@iterator/is-implemented.js
optimacms-0.4.2 spec/dummy/node_modules/es5-ext/array/#/@@iterator/is-implemented.js
cortex-0.1.3 spec/dummy/node_modules/es5-ext/array/#/@@iterator/is-implemented.js