join

join

> Functions

Merges several elements into a string, separating them with the delimiter glue.

Parameters
Return
TypeScript

In JavaScript, a.join(separator) converts each element the way join does in LeekScript, with one exception: null and undefined become the empty string instead of "null". So [1, null, undefined, 2].join(",") is "1,,,2".

Python

In Python, the method belongs to the separator: separator.join(a). And it requires all the elements to already be strings — ",".join([1, 2]) raises a TypeError, whereas join in LeekScript converts each element. Convert them yourself: ",".join(str(x) for x in a).