JavaScript
JavaScript
AppendArrayItems Example
Demonstrates the AppendArrayItems function.Note: This example requires Chilkat v9.5.0.82 or above.
Note
This example is intended for running within a Chilkat.Js embedded JavaScript engine. All Chilkat JavaScript examples require Chilkat
v11.4.0 or greater.
var jarr1 = new CkJsonArray();
jarr1.Load("[ 1, 2, 3, 4]");
var jarr2 = new CkJsonArray();
jarr2.Load("[ 5, 6, 7, 8]");
jarr1.AppendArrayItems(jarr2);
console.log(jarr1.Emit());
// Expected output: [1,2,3,4,5,6,7,8]
console.log(jarr2.Emit());
// Expected output: [5,6,7,8]