Muokkaa

Jaa


ArrayPrototype.join(Object, Object) Method

Definition

Concatenates the elements of the specified array into a string. The elements are separated by the specified separator.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 static System::String ^ join(System::Object ^ thisob, System::Object ^ separator);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.Array_join)]
public static string join (object thisob, object separator);
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.Array_join)>]
static member join : obj * obj -> string
Public Shared Function join (thisob As Object, separator As Object) As String

Parameters

thisob
Object

The object that this method is acting upon.

separator
Object

The string to use to separate the elements. The default is a comma.

Returns

A string that concatenates the elements of thisob.

Attributes

Applies to

See also