Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 383 Bytes

File metadata and controls

9 lines (6 loc) · 383 Bytes

Write a function to split a string and convert it into an array of words. For example:

"Robin Singh" ==> ["Robin", "Singh"]

"I love arrays they are my favorite" ==> ["I", "love", "arrays", "they", "are", "my", "favorite"]