Sha256: 607b8c70743318351358d6f60adf3f0a1f6c99b9c907a18b5f1dd0255c1af31d

Contents?: true

Size: 333 Bytes

Versions: 52

Compression:

Stored size: 333 Bytes

Contents

export default function symbolObservablePonyfill(root) {
	var result;
	var Symbol = root.Symbol;

	if (typeof Symbol === 'function') {
		if (Symbol.observable) {
			result = Symbol.observable;
		} else {
			result = Symbol('observable');
			Symbol.observable = result;
		}
	} else {
		result = '@@observable';
	}

	return result;
};

Version data entries

52 entries across 50 versions & 5 rubygems

Version Path
ilog-0.4.1 node_modules/symbol-observable/es/ponyfill.js
ilog-0.4.0 node_modules/symbol-observable/es/ponyfill.js
ilog-0.3.3 node_modules/symbol-observable/es/ponyfill.js
govuk_publishing_components-18.0.0 node_modules/symbol-observable/es/ponyfill.js
govuk_publishing_components-17.21.0 node_modules/symbol-observable/es/ponyfill.js
govuk_publishing_components-17.20.0 node_modules/symbol-observable/es/ponyfill.js
govuk_publishing_components-17.19.1 node_modules/symbol-observable/es/ponyfill.js
govuk_publishing_components-17.19.0 node_modules/symbol-observable/es/ponyfill.js
govuk_publishing_components-17.18.0 node_modules/symbol-observable/es/ponyfill.js
govuk_publishing_components-17.17.0 node_modules/symbol-observable/es/ponyfill.js
govuk_publishing_components-17.16.0 node_modules/symbol-observable/es/ponyfill.js
govuk_publishing_components-17.15.0 node_modules/symbol-observable/es/ponyfill.js
govuk_publishing_components-17.14.0 node_modules/symbol-observable/es/ponyfill.js
govuk_publishing_components-17.13.0 node_modules/symbol-observable/es/ponyfill.js
govuk_publishing_components-17.12.2 node_modules/symbol-observable/es/ponyfill.js
govuk_publishing_components-17.12.1 node_modules/symbol-observable/es/ponyfill.js
govuk_publishing_components-17.12.0 node_modules/symbol-observable/es/ponyfill.js
govuk_publishing_components-17.11.0 node_modules/symbol-observable/es/ponyfill.js
govuk_publishing_components-17.10.0 node_modules/symbol-observable/es/ponyfill.js
govuk_publishing_components-17.9.0 node_modules/symbol-observable/es/ponyfill.js