Codewars Convert a string to an array

preview_player
Показать описание
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"]
#arrays #strings #fundamentals #javascript #fuzetox
Рекомендации по теме