si-funciona
    Preparing search index...

    Function strBefore

    • Retrieve the string part before the search match.

      Parameters

      • str: string

        The string to search within.

      • search: string

        The substring to search for.

      Returns string

      The portion of str before the first occurrence of search, or '' if not found.