JakubHJ
Reactiflux4y ago
8 replies
JakubH

venus – 20-30 Aug 16

Hey. How can I split the string , so it won't throw any empty strings?

"First\nSecond\nThird\n\nFourth".split(`\n`);

["First", "Second", "Third", "", "Fourth"]; // Remove empty string
Was this page helpful?