React Native
React Native
AppendArrayItems Example
Demonstrates the AppendArrayItems function.Note: This example requires Chilkat v9.5.0.82 or above.
Chilkat React Native Downloads
import { JsonArray } from '@chilkat/react-native'
function chilkatExample() {
const jarr1 = new JsonArray();
jarr1.load('[ 1, 2, 3, 4]');
const jarr2 = new JsonArray();
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]
}