Vinyl
    Preparing search index...

    Function substringBefore

    • Returns the substring of string before the first occurrence of searchString, excluding searchString. If searchString is not found, the whole string will be returned.

      Parameters

      • string: string
      • searchString: string
      • caseSensitive: boolean = true

        If true (default) the search will be case-sensitive.

      Returns string