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: Wednesday, November 20, 2024 at 5:32:26 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);
}
}