Split String on First Whitespace Occurrence
Split String on First Whitespace Occurrence: a task in Terminal-Lego-15k (Harbor dataset). Write a JavaScript solution that splits a string into two parts based on the first whitespace occurrence only . Unlike the standard split(' ') method which splits on every whitespace, your solution should…
The task
Write a JavaScript solution that splits a string into two parts based on the **first whitespace occurrence only**. Unlike the standard `split(' ')` method which splits on every whitespace, your solution should only split at the first whitespace, keeping the rest of the string intact.
Part of PrimeIntellect/Terminal-Lego-15k.