The unstyle()
function removes styles from a string. If no styles are specified, all styles are removed.
unstyle(string, string [optional])
string.unstyle(string [optional])
Code language: JavaScript (javascript)
For a list of styles that can selected for removal, please refer to the style function.
Example Formulas
unstyle("Monkey D. Luffy")
"Tony Tony Chopper".unstyle("s")
Code language: JavaScript (javascript)
The first example will convert “Monkey D. Luffy” to “Monkey D. Luffy”, and the second example will convert “Tony Tony Chopper” to “Tony Tony Chopper“.