Skip to main content

Edit It: Split the given string at whitespaces and limit the returned array to one item only

This code shows how to split a string at whitespaces and limit the returned array to one item only.

See it on StackBlitz