Function removeStart

  • Removes a value from the start of a string.

    If the string does not start with the value, nothing is done.

    Since

    13.0.0

    See

    removeEnd

    Returns

    String with the value removed from the start.

    Example

    removeStart("FooBar", "Foo")
    // => "Bar"

    removeStart("FooBar", "Bar")
    // => "FooBar"

    removeStart("FooBar", "Buzz")
    // => "FooBar"

    Parameters

    • string: string

      String to check.

    • removeValue: string

      Value to remove.

    Returns string

Generated using TypeDoc