Skip to main content

Edit It: Split a given string containing a surrogate

This code shows how using an empty string as the split() method's argument will destroy surrogate pairs and cause bugs in your application.

See it on StackBlitz