ltrim

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

Trim left 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

    If you want to trim the resulted ltrim

Return

  1. -String

    The trimed string

Example

import { ltrim } from '@blackbyte/sugar/string'
 ltrim('Hello World', 'Hello') // World

Todo

  • testsnormal