implode function in JavaScript

B

Bosconian

I'm looking for an implode function like the one found in PHP.

I could write my own, but am wondering if something already exists.
 
M

Matt Kruse

Bosconian said:
I'm looking for an implode function like the one found in PHP.

It would be helpful if you would explain what implode does in PHP, as many
here may not be familiar with it.
I could write my own, but am wondering if something already exists.

I think array.join is what you're looking for.
 
B

Bosconian

Bosconian said:
I'm looking for an implode function like the one found in PHP.

I could write my own, but am wondering if something already exists.

Found it.

arrayObject.join(separator)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,183
Messages
2,570,968
Members
47,516
Latest member
ChrisHibbs

Latest Threads

Top