splitJoin
This tag splits the input with the split parameter and then joins it with the join parameter.
Created by: hackvertor
Installed 1 times
Category: String
Created on: Tuesday, November 5, 2024 at 1:09:17 PM
Updated on: Sunday, December 8, 2024 at 6:14:48 PM
Tag arguments
[
{
"type": "string",
"help": "This provides the split character",
"defaultValue": ","
},
{
"type": "string",
"help": "This provides the join character",
"defaultValue": ","
}
]
Code
class splitJoin {
encode(input, splitChar, joinChar) {
return input.split(splitChar).join(joinChar);
}
}