-
Notifications
You must be signed in to change notification settings - Fork 1
/
jlist-examples.htm
581 lines (335 loc) · 26.6 KB
/
jlist-examples.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
<html>
<head>
</head>
<body>
<script src="jlist-min.js"></script>
<script>
var response = '';
document.write('<br><h1>jList</h1> v1.5.0');
document.write('<br>');
document.write('<br><br><h1>listAppend</h1>');
response = jList.listAppend('elem1,elem2', 'rabbit');
document.write("jList.listAppend('elem1,elem2', 'rabbit' ) returns '" + response + "'" + '<br>');
response = jList.listAppend('','elem1,elem2');
document.write("jList.listAppend('','elem1,elem2') returns '" + response + "'" + '<br>');
response = jList.listAppend('cat-dog-mouse','hamster','-');
document.write("jList.listAppend('cat-dog-mouse','hamster','-') returns '" + response + "'" + '<br>');
document.write('<br><br><h1>listChangeDelims</h1>');
response = jList.listChangeDelims('a,e,c,b,d','=');
document.write("jList.listChangeDelims('a,e,c,b,d', '=') returns '" + response + "'<br>");
response = jList.listChangeDelims('a.e.c.b.d',',','.');
document.write("jList.listChangeDelims('a.e.c.b.d',',','.') returns '" + response + "'<br>");
response = jList.listChangeDelims('a,e,c,b,d','-','!');
document.write("jList.listChangeDelims('a,e,c,b,d','-','!') returns '" + response + "'<br>");
response = jList.listChangeDelims('a,e,c,b,d','-',',');
document.write("jList.listChangeDelims('a,e,c,b,d','-',',') returns '" + response + "'<br>");
document.write('<br><br><h1>listConcatenate</h1>');
response = jList.listConcatenate('elem1,elem2', 'cat,dog');
document.write("jList.listConcatenate('elem1,elem2', 'cat,dog' ) returns '" + response + "'" + '<br>');
response = jList.listConcatenate('','elem1,elem2');
document.write("jList.listConcatenate('','elem1,elem2') returns '" + response + "'" + '<br>');
response = jList.listConcatenate('elem1,elem2', '');
document.write("jList.listConcatenate('elem1,elem2', '' ) returns '" + response + "'" + '<br>');
response = jList.listConcatenate('cat-dog-mouse','hamster','-');
document.write("jList.listConcatenate('cat-dog-mouse','hamster','-') returns '" + response + "'" + '<br>');
document.write('<br><br><h1>listContains</h1>');
response = jList.listContains('cat,dog,mouse,rabbit,dog', 'og');
document.write("jList.listContains('cat,dog,mouse,rabbit,dog', 'og') returns '" + response + "'" + '<br>');
response = jList.listContains('cat.dog.mouse.rabbit.dog', 'og', '.');
document.write("jList.listContains('cat.dog.mouse.rabbit.dog', 'og', '.') returns '" + response + "'" + '<br>');
response = jList.listContains('cat,dog,mouse,rabbit,dog', 'OG');
document.write("jList.listContains('cat,dog,mouse,rabbit,dog', 'OG') returns '" + response + "'" + '<br>');
response = jList.listContains('cat.dog.mouse.rabbit.dog', 'Rab', '.');
document.write("jList.listContains('cat.dog.mouse.rabbit.dog', 'Rab', '.') returns '" + response + "'" + '<br>');
response = jList.listContains('cat,dog,mouse,rabbit,dog', 'tr');
document.write("jList.listContains('cat,dog,mouse,rabbit,dog', 'tr') returns '" + response + "'" + '<br>');
document.write('<br><br><h1>listContainsNoCase</h1>');
response = jList.listContainsNoCase('cat,dog,mouse,rabbit,dog', 'og');
document.write("jList.listContainsNoCase('cat,dog,mouse,rabbit,dog', 'og') returns '" + response + "'" + '<br>');
response = jList.listContainsNoCase('cat.dog.mouse.rabbit.dog', 'og', '.');
document.write("jList.listContainsNoCase('cat.dog.mouse.rabbit.dog', 'og', '.') returns '" + response + "'" + '<br>');
response = jList.listContainsNoCase('cat,dog,mouse,rabbit,dog', 'OG');
document.write("jList.listContainsNoCase('cat,dog,mouse,rabbit,dog', 'OG') returns '" + response + "'" + '<br>');
response = jList.listContainsNoCase('cat.dog.mouse.rabbit.dog', 'Rab', '.');
document.write("jList.listContainsNoCase('cat.dog.mouse.rabbit.dog', 'Rab', '.') returns '" + response + "'" + '<br>');
response = jList.listContainsNoCase('cat,dog,mouse,rabbit,dog', 'tr');
document.write("jList.listContainsNoCase('cat,dog,mouse,rabbit,dog', 'tr') returns '" + response + "'" + '<br>');
document.write('<br><br><h1>listDeleteAt</h1>');
response = jList.listDeleteAt('elem1,elem2,elem3',2);
document.write("jList.listDeleteAt('elem1,elem2,elem3',2) returns '" + response + "'" + '<br>');
response = jList.listDeleteAt('elem1,elem2',4);
document.write("jList.listDeleteAt('elem1,elem2',4) returns '" + response + "'" + '<br>');
response = jList.listDeleteAt('cat-dog-mouse',3,'-');
document.write("jList.listDeleteAt('cat-dog-mouse',3,'-') returns '" + response + "'" + '<br>');
document.write('<br><br><h1>listDifference</h1>');
response = jList.listDifference('elem1,elem2', 'elem2,elem3');
document.write("jList.listDifference('elem1,elem2', 'elem2,elem3' ) returns '" + response + "'" + '<br>');
response = jList.listDifference('','elem1,elem2');
document.write("jList.listDifference('','elem1,elem2') returns '" + response + "'" + '<br>');
response = jList.listDifference('elem1,elem2', '');
document.write("jList.listDifference('elem1,elem2', '' ) returns '" + response + "'" + '<br>');
response = jList.listDifference('cat-dog-mouse','cat-rabbit-dog-rabbit-hamster','-');
document.write("jList.listDifference('cat-dog-mouse','cat-rabbit-dog-rabbit-hamster','-') returns '" + response + "'" + '<br>');
document.write('<br><br><h1>listFind</h1>');
response = jList.listFind('elem1,elem2,elem3','Elem3');
document.write("jList.listFind('elem1,elem2,elem3','Elem3') returns " + response + '<br>');
response = jList.listFind('elem1,elem2','cat');
document.write("jList.listFind('elem1,elem2','cat') returns " + response + '<br>');
response = jList.listFind('cat-dog--mouse','dog','-');
document.write("jList.listFind('cat-dog--mouse','dog','-') returns " + response + '<br>');
response = jList.listFind('5-4-3-2-1','4','-');
document.write("jList.listFind('5-4-3-2-1','4','-') returns " + response + '<br>');
response = jList.listFind('5-4-3-2-1',4,'-');
document.write("jList.listFind('5-4-3-2-1',4,'-') returns " + response + '<br>');
document.write('<br><br><h1>listFindNoCase</h1>');
response = jList.listFindNoCase('elem1,elem2,elem3','elem3');
document.write("jList.listFindNoCase('elem1,elem2,elem3','elem3') returns " + response + '<br>');
response = jList.listFindNoCase('elem1,elem2,elem3','Elem3');
document.write("jList.listFindNoCase('elem1,elem2,elem3','Elem3') returns " + response + '<br>');
response = jList.listFindNoCase('cat,dog','CAT');
document.write("jList.listFindNoCase('cat,dog','DOG') returns " + response + '<br>');
response = jList.listFindNoCase('Cat-Dog--Mouse','dog','-');
document.write("jList.listFindNoCase('Cat-Dog--Mouse','dog','-') returns " + response + '<br>');
response = jList.listFindNoCase('Cat-Dog--Mouse','mouse','-');
document.write("jList.listFindNoCase('Cat-Dog--Mouse','mouse','-') returns " + response + '<br>');
response = jList.listFindNoCase('5-4-3-2-1',4,'-');
document.write("jList.listFindNoCase('5-4-3-2-1',4,'-') returns " + response + '<br>');
document.write('<br><br><h1>listFirst</h1>');
response = jList.listFirst('elem1,elem2,elem3');
document.write("jList.listFirst('elem1,elem2,elem3') returns '" + response + "'<br>");
response = jList.listFirst('cat,dog','~');
document.write("jList.listFirst('cat,dog','~') returns '" + response + "'<br>");
response = jList.listFirst('Cat-Dog--Mouse','-');
document.write("jList.listFirst('Cat-Dog--Mouse','-') returns '" + response + "'<br>");
response = jList.listFirst('5-4-3-2-1','-');
document.write("jList.listFirst('5-4-3-2-1','-') returns '" + response + "'<br>");
response = jList.listFirst('');
document.write("jList.listFirst('') returns '" + response + "'<br>");
document.write('<br><br><h1>listGetAt</h1>');
response = jList.listGetAt('elem1,elem2,elem3',1);
document.write("jList.listGetAt('elem1,elem2,elem3',1) returns '" + response + "'<br>");
response = jList.listGetAt('cat,dog',1,'~');
document.write("jList.listGetAt('cat,dog',1,'~') returns '" + response + "'<br>");
response = jList.listGetAt('Cat-Dog--Mouse',3,'-');
document.write("jList.listGetAt('Cat-Dog--Mouse',3,'-') returns '" + response + "'<br>");
response = jList.listGetAt('5-4-3-2-1',5,'-');
document.write("jList.listGetAt('5-4-3-2-1',5,'-') returns '" + response + "'<br>");
response = jList.listGetAt('',4);
document.write("jList.listGetAt('',4) returns '" + response + "'<br>");
document.write('<br><br><h1>listInsertAt</h1>');
response = jList.listInsertAt('elem1,elem2,elem3',1,'hello');
document.write("jList.listInsertAt('elem1,elem2,elem3',1,'hello') returns '" + response + "'<br>");
response = jList.listInsertAt('cat,dog',1,'monkey','~');
document.write("jList.listInsertAt('cat,dog',1,'monkey','~') returns '" + response + "'<br>");
response = jList.listInsertAt('Cat-Dog--Mouse',3,'Elephant','-');
document.write("jList.listInsertAt('Cat-Dog--Mouse','Elephant',3,'-') returns '" + response + "'<br>");
response = jList.listInsertAt('5-4-3-2-1',5,999,'-');
document.write("jList.listInsertAt('5-4-3-2-1',999,5,'-') returns '" + response + "'<br>");
response = jList.listInsertAt('',4,'abcdef');
document.write("jList.listInsertAt('','abcdef',4) returns '" + response + "'<br>");
response = jList.listInsertAt('',1,'abcdef');
document.write("jList.listInsertAt('','abcdef',1) returns '" + response + "'<br>");
document.write('<br><br><h1>listIntersection</h1>');
response = jList.listIntersection('elem1,elem2', 'elem2,elem3');
document.write("jList.listIntersection('elem1,elem2', 'elem2,elem3' ) returns '" + response + "'" + '<br>');
response = jList.listIntersection('','elem1,elem2');
document.write("jList.listIntersection('','elem1,elem2') returns '" + response + "'" + '<br>');
response = jList.listIntersection('elem1,elem2', '');
document.write("jList.listIntersection('elem1,elem2', '' ) returns '" + response + "'" + '<br>');
response = jList.listIntersection('cat-dog-mouse','cat-rabbit-dog-hamster','-');
document.write("jList.listIntersection('cat-dog-mouse','cat-rabbit-dog-hamster','-') returns '" + response + "'" + '<br>');
document.write('<br><br><h1>listLast</h1>');
response = jList.listLast('elem1,elem2,elem3');
document.write("jList.listLast('elem1,elem2,elem3') returns '" + response + "'<br>");
response = jList.listLast('cat,dog','~');
document.write("jList.listLast('cat,dog','~') returns '" + response + "'<br>");
response = jList.listLast('Cat-Dog--Mouse','-');
document.write("jList.listLast('Cat-Dog--Mouse','-') returns '" + response + "'<br>");
response = jList.listLast('','-');
document.write("jList.listLast('','-') returns '" + response + "'<br>");
document.write('<br><br><h1>listLen</h1>');
response = jList.listLen('elem1,elem2,elem3');
document.write("jList.listLen('elem1,elem2,elem3') returns " + response + "<br>");
response = jList.listLen('cat,dog','~');
document.write("jList.listLen('cat,dog','~') returns " + response + "<br>");
response = jList.listLen('Cat-Dog--Mouse','-');
document.write("jList.listLen('Cat-Dog--Mouse','-') returns " + response + "<br>");
response = jList.listLen('','-');
document.write("jList.listLen('','-') returns " + response + "<br>");
document.write('<br><br><h1>listPrepend</h1>');
response = jList.listPrepend('elem1,elem2,elem3','elem99');
document.write("jList.listPrepend('elem1,elem2,elem3','elem99') returns " + response + "<br>");
response = jList.listPrepend('cat,dog','mouse','~');
document.write("jList.listPrepend('cat,dog','mouse','~') returns " + response + "<br>");
response = jList.listPrepend('Cat-Dog--Mouse','Rabbit','-');
document.write("jList.listPrepend('Cat-Dog--Mouse','Rabbit','-') returns " + response + "<br>");
response = jList.listPrepend('','Rabbit','-');
document.write("jList.listPrepend('','Rabbit','-') returns " + response + "<br>");
document.write('<br><br><h1>listQualify</h1>');
response = jList.listQualify('elem1,elem2,elem3','~');
document.write("jList.listQualify('elem1,elem2,elem3','~') returns '" + response + "'<br>");
response = jList.listQualify('cat,dog','@','~');
document.write("jList.listQualify('cat,dog','@','~') returns '" + response + "'<br>");
response = jList.listQualify('Cat-Dog--Mouse','$','-');
document.write("jList.listQualify('Cat-Dog--Mouse','$','-') returns '" + response + "'<br>");
response = jList.listQualify('','*','-');
document.write("jList.listQualify('','*','-') returns '" + response + "'<br>");
document.write('<br><br><h1>listRemove</h1>');
response = jList.listRemove('a,e,c,e,a,b,d','a');
document.write("jList.listRemove('a,e,c,e,a,b,d','a') returns '" + response + "'<br>");
response = jList.listRemove('a,f,c,d,A,f,C,d','a,f,c,d');
document.write("jList.listRemove('a,f,c,d,A,f,C,d','a,f,c,d') returns '" + response + "'<br>");
response = jList.listRemove('a~12~1~Z~C~12','1','~');
document.write("jList.listRemove('a~12~1~Z~C~12','1','~') returns '" + response + "'<br>");
response = jList.listRemove('1.1.1.1.1.1','1','.');
document.write("jList.listRemove('1.1.1.1.1.1','1','.') returns '" + response + "'<br>");
response = jList.listRemove('12,3,4,1,12,4,6','4,1');
document.write("jList.listRemove('12,3,4,1,12,4,6','4,1') returns '" + response + "'<br>");
document.write('<br><br><h1>listRemoveNoCase</h1>');
response = jList.listRemoveNoCase('a,e,c,e,a,b,d','a');
document.write("jList.listRemoveNoCase('a,e,c,e,a,b,d','a') returns '" + response + "'<br>");
response = jList.listRemoveNoCase('a,f,c,d,A,f,C,d','a,f,c,d');
document.write("jList.listRemoveNoCase('a,f,c,d,A,f,C,d','a,f,c,d') returns '" + response + "'<br>");
response = jList.listRemoveNoCase('a~12~1~Z~C~12','1','~');
document.write("jList.listRemoveNoCase('a~12~1~Z~C~12','1','~') returns '" + response + "'<br>");
response = jList.listRemoveNoCase('1.1.1.1.1.1','1','.');
document.write("jList.listRemoveNoCase('1.1.1.1.1.1','1','.') returns '" + response + "'<br>");
response = jList.listRemoveNoCase('12,3,4,1,12,4,6','4,1');
document.write("jList.listRemoveNoCase('12,3,4,1,12,4,6','4,1') returns '" + response + "'<br>");
document.write('<br><br><h1>listRemoveDuplicates</h1>');
response = jList.listRemoveDuplicates('a,e,c,e,a,b,d');
document.write("jList.listRemoveDuplicates('a,e,c,e,a,b,d') returns '" + response + "'<br>");
response = jList.listRemoveDuplicates('a,f,c,d,A,f,C,d');
document.write("jList.listRemoveDuplicates('a,f,c,d,A,f,C,d') returns '" + response + "'<br>");
response = jList.listRemoveDuplicates('a~12~1~Z~C~12','~');
document.write("jList.listRemoveDuplicates('a~12~1~Z~C~12','~') returns '" + response + "'<br>");
response = jList.listRemoveDuplicates('1.1.1.1.1.1','.');
document.write("jList.listRemoveDuplicates('1.1.1.1.1.1','.') returns '" + response + "'<br>");
response = jList.listRemoveDuplicates('12,3,4,1,12,4,6');
document.write("jList.listRemoveDuplicates('12,3,4,1,12,4,6') returns '" + response + "'<br>");
document.write('<br><br><h1>listRemoveDuplicatesNoCase</h1>');
response = jList.listRemoveDuplicatesNoCase('a,e,c,e,a,b,d');
document.write("jList.listRemoveDuplicatesNoCase('a,e,c,e,a,b,d') returns '" + response + "'<br>");
response = jList.listRemoveDuplicatesNoCase('a,f,c,d,A,f,C,d');
document.write("jList.listRemoveDuplicatesNoCase('a,f,c,d,A,f,C,d') returns '" + response + "'<br>");
response = jList.listRemoveDuplicatesNoCase('a~12~1~Z~C~A~A~a~12','~');
document.write("jList.listRemoveDuplicatesNoCase('a~12~1~Z~C~A~A~a~12','~') returns '" + response + "'<br>");
response = jList.listRemoveDuplicatesNoCase('1.1.1.1.1.1','.');
document.write("jList.listRemoveDuplicatesNoCase('1.1.1.1.1.1','.') returns '" + response + "'<br>");
response = jList.listRemoveDuplicatesNoCase('12,3,4,1,12,4,6');
document.write("jList.listRemoveDuplicatesNoCase('12,3,4,1,12,4,6') returns '" + response + "'<br>");
response = jList.listRemoveDuplicatesNoCase('cat,dog,rabbit,DOG,Rabbit');
document.write("jList.listRemoveDuplicatesNoCase('cat,dog,rabbit,DOG,Rabbit') returns '" + response + "'<br>");
document.write('<br><br><h1>listReplace</h1>');
response = jList.listReplace('a,e,c,e,a,b,d','a','b');
document.write("jList.listReplace('a,e,c,e,a,b,d','a','b') returns '" + response + "'<br>");
response = jList.listReplace('a,f,c,d,A,f,C,d','a','b');
document.write("jList.listReplace('a,f,c,d,A,f,C,d','a','b') returns '" + response + "'<br>");
response = jList.listReplace('a~12~1~Z~C~12','1','5','~');
document.write("jList.listReplace('a~12~1~Z~C~12','1','5','~') returns '" + response + "'<br>");
response = jList.listReplace('1.1.1.1.1.1','1','2','.');
document.write("jList.listReplace('1.1.1.1.1.1','1','2','.') returns '" + response + "'<br>");
response = jList.listReplace('12,3,4,1,12,4,6','4','1');
document.write("jList.listReplace('12,3,4,1,12,4,6','4','1') returns '" + response + "'<br>");
document.write('<br><br><h1>listReplaceNoCase</h1>');
response = jList.listReplaceNoCase('a,e,c,e,a,b,d','a','b');
document.write("jList.listReplaceNoCase('a,e,c,e,a,b,d','a','b') returns '" + response + "'<br>");
response = jList.listReplaceNoCase('a,f,c,d,A,f,C,d','a','b');
document.write("jList.listReplaceNoCase('a,f,c,d,A,f,C,d','a','b') returns '" + response + "'<br>");
response = jList.listReplaceNoCase('a~12~1~Z~C~12','1','5','~');
document.write("jList.listReplaceNoCase('a~12~1~Z~C~12','1','5','~') returns '" + response + "'<br>");
response = jList.listReplaceNoCase('1.1.1.1.1.1','1','2','.');
document.write("jList.listReplaceNoCase('1.1.1.1.1.1','1','2','.') returns '" + response + "'<br>");
response = jList.listReplaceNoCase('12,3,4,1,12,4,6','4','1');
document.write("jList.listReplaceNoCase('12,3,4,1,12,4,6','4','1') returns '" + response + "'<br>");
document.write('<br><br><h1>listRest</h1>');
response = jList.listRest('elem1,elem2,elem3');
document.write("jList.listRest('elem1,elem2,elem3') returns '" + response + "'<br>");
response = jList.listRest('cat,dog','~');
document.write("jList.listRest('cat,dog','~') returns '" + response + "'<br>");
response = jList.listRest('Cat-Dog--Mouse','-');
document.write("jList.listRest('Cat-Dog--Mouse','-') returns '" + response + "'<br>");
response = jList.listRest('','-');
document.write("jList.listRest('','-') returns '" + response + "'<br>");
document.write('<br><br><h1>listReverse</h1>');
response = jList.listReverse('elem1,elem2,elem3');
document.write("jList.listReverse('elem1,elem2,elem3') returns '" + response + "'<br>");
response = jList.listReverse('cat,dog','~');
document.write("jList.listReverse('cat,dog','~') returns '" + response + "'<br>");
response = jList.listReverse('Cat-Dog--Mouse','-');
document.write("jList.listReverse('Cat-Dog--Mouse','-') returns '" + response + "'<br>");
response = jList.listReverse('','-');
document.write("jList.listReverse('','-') returns '" + response + "'<br>");
document.write('<br><br><h1>listSetAt</h1>');
response = jList.listSetAt('elem1,elem2,elem3',1,'elem99');
document.write("jList.listSetAt('elem1,elem2,elem3',1,'elem99') returns '" + response + "'<br>");
response = jList.listSetAt('cat,dog',2,'hamster','~');
document.write("jList.listSetAt('cat,dog',2,'hamster','~') returns '" + response + "'<br>");
response = jList.listSetAt('Cat-Dog--Mouse',3,'Hamster','-');
document.write("jList.listSetAt('Cat-Dog--Mouse',3,'Hamster','-') returns '" + response + "'<br>");
response = jList.listSetAt('',3,'a new one','-');
document.write("jList.listSetAt('',3,'a new one','-') returns '" + response + "'<br>");
response = jList.listSetAt('',1,'a new one','-');
document.write("jList.listSetAt('',1,'a new one','-') returns '" + response + "'<br>");
document.write('<br><br><h1>listSort</h1>');
response = jList.listSort('a,e,c,b,d');
document.write("jList.listSort('a,e,c,b,d') returns '" + response + "'<br>");
response = jList.listSort('a,f,c,d,A,C');
document.write("jList.listSort('a,f,c,d,A,C') returns '" + response + "'<br>");
response = jList.listSort('a~12~1~Z~C','alpha','asc','~');
document.write("jList.listSetAt('a~12~1~Z~C','alpha','asc','~') returns '" + response + "'<br>");
response = jList.listSort('a~12~1~Z~C','alpha','desc','~');
document.write("jList.listSort('a~12~1~Z~C','alpha','desc','~') returns '" + response + "'<br>");
response = jList.listSort('12,3,4,1,55,5,6','alpha','asc');
document.write("jList.listSort('12,3,4,1,55,5,6','alpha','asc') returns '" + response + "'<br>");
response = jList.listSort('12,3,4,1,55,5,6','numeric','asc');
document.write("jList.listSort('12,3,4,1,55,5,6','numeric','asc') returns '" + response + "'<br>");
document.write('<br><br><h1>listUnion</h1>');
response = jList.listUnion('elem1,elem2', 'elem2,elem3');
document.write("jList.listUnion('elem1,elem2', 'elem2,elem3' ) returns '" + response + "'" + '<br>');
response = jList.listUnion('','elem1,elem2');
document.write("jList.listUnion('','elem1,elem2') returns '" + response + "'" + '<br>');
response = jList.listUnion('elem1,elem2', '');
document.write("jList.listUnion('elem1,elem2', '' ) returns '" + response + "'" + '<br>');
response = jList.listUnion('elem1,elem1', '');
document.write("jList.listUnion('elem1,elem1', '' ) returns '" + response + "'" + '<br>');
response = jList.listUnion('cat-dog-mouse','hamster','-');
document.write("jList.listUnion('cat-dog-mouse','hamster','-') returns '" + response + "'" + '<br>');
document.write('<br><br><h1>listValueCount</h1>');
response = jList.listValueCount('a,e,a,c,a,b,a,d','a');
document.write("jList.listValueCount('a,e,a,c,a,b,a,d','a') returns '" + response + "'<br>");
response = jList.listValueCount('a,e,a,c,a,b,a,d','A');
document.write("jList.listValueCount('a,e,a,c,a,b,a,d','A') returns '" + response + "'<br>");
response = jList.listValueCount('a,e,A,c,a,b,A,d','A');
document.write("jList.listValueCount('a,e,A,c,a,b,A,d','A') returns '" + response + "'<br>");
response = jList.listValueCount('a;e;A;c;a;b;A;d','A');
document.write("jList.listValueCount('a;e;A;c;a;b;A;d','A') returns '" + response + "'<br>");
response = jList.listValueCount('a;e;A;c;a;b;A;d','A',';');
document.write("jList.listValueCount('a;e;A;c;a;b;A;d','A',';') returns '" + response + "'<br>");
response = jList.listValueCount('John,Mark,Steve,Alan,John,john','john');
document.write("jList.listValueCount('John,Mark,Steve,Alan,John,john','john') returns '" + response + "'<br>");
response = jList.listValueCount('1,2,3,1,2,3',3);
document.write("jList.listValueCount('1,2,3,1,2,3',3) returns '" + response + "'<br>");
response = jList.listValueCount('1,2,3,1,2,3','3');
document.write("jList.listValueCount('1,2,3,1,2,3','3') returns '" + response + "'<br>");
document.write('<br><br><h1>listValueCountNoCase</h1>');
response = jList.listValueCountNoCase('a,e,a,c,a,b,a,d','a');
document.write("jList.listValueCountNoCase('a,e,a,c,a,b,a,d','a') returns '" + response + "'<br>");
response = jList.listValueCountNoCase('a,e,a,c,a,b,a,d','A');
document.write("jList.listValueCountNoCase('a,e,a,c,a,b,a,d','A') returns '" + response + "'<br>");
response = jList.listValueCountNoCase('a,e,A,c,a,b,A,d','A');
document.write("jList.listValueCountNoCase('a,e,A,c,a,b,A,d','A') returns '" + response + "'<br>");
response = jList.listValueCountNoCase('a;e;A;c;a;b;A;d','A');
document.write("jList.listValueCountNoCase('a;e;A;c;a;b;A;d','A') returns '" + response + "'<br>");
response = jList.listValueCountNoCase('a;e;A;c;a;b;A;d','A',';');
document.write("jList.listValueCountNoCase('a;e;A;c;a;b;A;d','A',';') returns '" + response + "'<br>");
response = jList.listValueCountNoCase('John,Mark,Steve,Alan,John,john','john');
document.write("jList.listValueCountNoCase('John,Mark,Steve,Alan,John,john','john') returns '" + response + "'<br>");
response = jList.listValueCountNoCase('1,2,3,1,2,3',3);
document.write("jList.listValueCountNoCase('1,2,3,1,2,3',3) returns '" + response + "'<br>");
response = jList.listValueCountNoCase('1,2,3,1,2,3','3');
document.write("jList.listValueCountNoCase('1,2,3,1,2,3','3') returns '" + response + "'<br>");
document.write('<br><br><br>');
</script>
</body>
</html>