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?
-
-
-
Replying to @LeadHyperion
@LeadHyperion I got a bit thrown off there, when it comes to [idx]. here is what I have so far http://pastebin.com/Q1rfGhxU2 replies 0 retweets 0 likes -
Replying to @DaveVoyles
@DaveVoyles not add the ", " to the end of the string (which your pastebin doesn't have either)1 reply 0 retweets 0 likes -
Replying to @LeadHyperion
@LeadHyperion if (castnames == entity.cast.length) { }2 replies 0 retweets 0 likes -
Replying to @DaveVoyles
@DaveVoyles Also, why is castnames an array? Thought you wanted a string?1 reply 0 retweets 0 likes -
Replying to @LeadHyperion
@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 strin2 replies 0 retweets 0 likes -
Replying to @DaveVoyles
@DaveVoyles I have tried to run that code, but should give you the idea2 replies 0 retweets 0 likes
@LeadHyperion Ah I remember why I return an array now. Otherwise I get: [object Object], [object Object],[object Object], [object Object],
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.