@nevware21/ts-utils
    Preparing search index...

    Function strUnwrap

    • Removes a single wrapping prefix / suffix pair if present.

      Parameters

      • value: string

        The value to unwrap.

      • prefix: string

        The expected wrapper prefix value.

      • Optionalsuffix: string

        Optional wrapper suffix value. If omitted, prefix is used.

      Returns string

      The unwrapped string when the wrapper is present; otherwise the original string.

      0.14.0

      TypeError If value is null or undefined.