The array to transform into a string.
The array transformed into a string.
// Convert an array of numbers into a string
const numberArray = [1, 2, 3];
const numberString = ix.api.text.doCharStuffing(numberArray);
console.log(numberString); // Outputs: "1||2||3"
// Convert an array of strings into a string, with character stuffing
const stringArray = ["abc", "d|e", "fgh"];
const stringString = ix.api.text.doCharStuffing(stringArray);
console.log(stringString); // Outputs: "abc||d|0e||fgh"
Converts an array into a string using a specific separator and escape sequence.
||
.|
character, it is escaped with|0
.undefined
or the string"undefined"
are skipped.