trimCaracter

trimCaracter ( string txt , string caracterToTrim ) : string

Remove some caracters at the left and the right of a string

Example


console(trimCaracter("+hello World+", "+")) //-> hello World

Parameters

txt

caracterToTrim