Implode array with null keyword

I have following array like below

[1,null,null,2]

I want to implode make it as string like below

1,null,null,2

I tried

temparr.join(',')

But I am getting

1,,,2

How do i preserve the keyword null.

8 thoughts on “Implode array with null keyword”

Leave a Comment