Returning an array of strings (cast names). How can I separate them with commas and a space, but NOT have a comma after the last one?
-
-
@DaveVoyles No. if (i == entity.cast.length) { // This is the last item to append } else { // add the string, plus the , }Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@DaveVoyles Also, why is castnames an array? Thought you wanted a string? -
@LeadHyperion Hmmm... well I do want it to return a string. Really, it was just an array of strings, but I guess what I need is just a strin - Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.