function hasGlobalThisSupport() {
	return (
		typeof globalThis === 'object' &&
		typeof globalThis.setTimeout === 'function' // eslint-disable-line no-undef
	);
}
Tests for `globalThis` support.

@returns {boolean} boolean indicating if an environment has `globalThis` support

@example
var bool = hasGlobalThisSupport();
// returns <boolean>