Skip to content

Latest commit

 

History

History
7 lines (5 loc) · 234 Bytes

(8 kuy) Convert a string to an array.md

File metadata and controls

7 lines (5 loc) · 234 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"]