Logo

Programming-Idioms

History of Idiom 49 > diff from v2 to v3

Edit summary for version 3 by :

Version 2

2015-07-31, 19:36:20

Version 3

2015-08-01, 17:13:11

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
chunks = s.split(/\s+/);