@pengzhanbo/utils - v3.12.0
    Preparing search index...

    Function slash

    • Replace all backslashes with forward slashes

      将所有反斜杠替换为正斜杠

      Parameters

      • v: string

        The string to replace backslashes in. / 要替换反斜杠的字符串

      Returns string

      The string with all backslashes replaced with forward slashes. / 替换所有反斜杠后的字符串

      slash('foo\\bar') // => foo/bar