String.ensureRight
ensureRight($suffix) -> string
Description
Add $suffix to the end of the string if it does not already exist.
'100'.ensureRight('%')
//= '100%'
'100%'.ensureRight('%')
//= '100%'
Add $suffix to the end of the string if it does not already exist.
'100'.ensureRight('%')
//= '100%'
'100%'.ensureRight('%')
//= '100%'