Skip to content

Latest commit

 

History

History

convertAStringToAnArray

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Convert a string to an array

8 kyu link to kata
my solution

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

Examples (Input ==> Output):

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

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