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.
-
-
Here's one that might be answerable (apologies if not). My notes indicate that between Chrome 63 and Chrome 64 consoles, "{}" was no longer considered a anonymous code block, so "{} + []" and "[] + {}" were commutative. I cannot replicate this in Chrome 68. Was I dreaming?
- 4 more replies
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.