The string to transform into an array.
The string transformed into an array.
// Convert a string of numbers into an array
const numberString = "1||2||3";
const numberArray = ix.api.text.undoCharStuffing(numberString);
console.log(numberArray); // Outputs: ["1", "2", "3"]
// Convert a string with character stuffing into an array of strings
const stringString = "abc||d|0e||fgh";
const stringArray = ix.api.text.undoCharStuffing(stringString);
console.log(stringArray); // Outputs: ["abc", "d|e", "fgh"]
Transforms a string into an array by splitting it at each
||
separator. Any|0
sequences in the string are unescaped to|
.This function is the inverse of doCharStuffing.
||
and transforms it back into an array.|0
, it is unescaped to|
.