Makes an array easy to read.
_array | Array to format ARRAY |
_indents | Indentation string (optional, default: “ “) STRING |
_lineBreak | Seperator string (optional, default: endl) STRING |
_depth | Initial indentation count (optional, default: 0) <NUMBER> |
Formatted string STRING
[[0, 1, ["22", 33, []], 4]] call CBA_fnc_prettyFormat; //[ // 0, // 1, // [ // "22", // 33, // [] // ], // 4 //] [[0, 1, ["22", 33, []], 4], ">---"] call CBA_fnc_prettyFormat; //[ //>---0, //>---1, //>---[ //>--->---"22", //>--->---33, //>--->---[] //>---], //>---4 //] [[0, 1, ["22", 33, []], 4], ">---", "\n"] call CBA_fnc_prettyFormat; //[\n>---0,\n>---1,\n>---[\n>--->---"22",\n>--->---33,\n>--->---[]\n>---],\n>---4\n]
Terra, Dystopian, commy2