Browser | ES2017 | ES5 | runtime polyfills |
---|---|---|---|
Chrome 64+ | ✅ | ||
Firefox 57+ | ✅ | ||
Opera 42+ | ✅ | ||
Edge 15+ | ✅ | ||
iOS/Safari 11+ | ✅ | ||
Chrome 54-63 | ✅ | ||
Firefox 48-56 | ✅ | ||
Opera 41 | ✅ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Module A | |
window.globalState = { 'foo': 'bar' }; | |
// Module B | |
module.exports = function() { | |
console.log(window.globalState); | |
} |
OlderNewer