shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
rtrim
Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.string
Trim right a specified string
Params
- string*-String
The string to trim
- needle*-String
The string to find an cut out if found
- trimResulttrueBoolean
Specify if you want to trim the trimed string
Return
- -String
The trimed string
Example
import { rtrim } from '@blackbyte/sugar/string'
rtrim('Hello World', 'ld') // Hello WorTodo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space