rtrim

Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.string

Trim right a specified string

Params

  1. string*-String

    The string to trim

  2. needle*-String

    The string to find an cut out if found

  3. trimResulttrueBoolean

    Specify if you want to trim the trimed string

Return

  1. -String

    The trimed string

Example

import { rtrim } from '@blackbyte/sugar/string'
rtrim('Hello World', 'ld') // Hello Wor

Todo

  • testsnormal