Logo

Programming-Idioms

History of Idiom 49 > diff from v6 to v7

Edit summary for version 7 by :

Version 6

2015-08-20, 17:20:37

Version 7

2015-08-21, 20:33:44

Idiom #49 Split a space-separated string

Build list chunks consisting in substrings of input string s, separated by one or more space characters.

Idiom #49 Split a space-separated string

Build list chunks consisting in substrings of input string s, separated by one or more space characters.

Code
s.split(new RegExp('\\s+'))
Demo URL
https://dartpad.dartlang.org/6c935e1c664d4744cd8f