If I were in the mood for strictness I'd probably return an error, but I think returning "Single element array, zero length string" would be most streamlined considering what I usually do with strings ...
While JavaScript has many applications, working with string values is one of the most popular. Strings are objects within the JavaScript language. They are not stored as character arrays, so built-in ...
Results that may be inaccessible to you are currently showing.
Hide inaccessible results