Appends an expression to a list with the passed delimiter. If no delimiter is specified, the the expression is appended using a comma (',') as the delimiter.

Syntax

JSV_listAppend(expL, expE [, delimiter])

Prototype

expL.listAppend(expE [, delimiter])

Returns

Returns the original list with the appended expression.

Parameters

The listAppend function uses the following arguments.

Argument Description
expL Delimited list.
expE The expression to be appended.
delimiter Optional. Single delimiter used in string. Default value is a comma.

Remarks

n/a

Dependencies

n/a

Example

The following lines of code

var myList= "1,2,3,4,5,6,7";
var myAppend = 44;
document.write( JSV_listAppend(myList,myAppend) );
myAppend = "100,101,102,103,104";
document.write( JSV_listAppend(myList,myAppend) );

produce