join

Summary

Returns a string representation of the array with each element separated by commas.

Signatures

Click on a signature to select it and view its documentation.

Usage

public string join()

Returns

A string representation of the array with each element separated by commas.

Description

Returns a string representation of the array with each element separated by commas.

This method does not mutate the array.

Examples

Basic Usage
1
2
3
import System;
 
Console.log([1, 2, 3].join()); // "1,2,3"

Share

HTML | BBCode | Direct Link