4 lines
144 B
JavaScript
4 lines
144 B
JavaScript
|
string_to_array = function (str) {
|
||
|
return str.trim().split(" ");
|
||
|
};
|
||
|
console.log(string_to_array("Robin Singh"));
|