String#split has always returned the input string if no separator is specified. This did not change in ES2018.
I think you meant:
'
'.split('');
…which returns:
['\uD83D', '\uDE80']
…but this hasn‘t changed in ES2018 either.
See https://mths.be/jsu for details.
-
-
TL;DR The different output is the correct behavior. Commutativity doesn’t really apply here as `{}` means different things. I can’t answer your question re: those old Chrome versions, though. It’s possible you spotted a bug in the DevTools console that was since fixed.
-
Thanks for the detailed response
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.