API Docs
    Preparing search index...

    Function splitAt

    • Internal

      Splits a string at the first occurrence of a delimiter. Returns a [before, after] tuple.

      Parameters

      • str: string

        The string to split

      • delimiter: string

        The delimiter character

      Returns [string, string]

      A tuple [beforeDelimiter, afterDelimiter]

      splitAt('hello=world', '='); // ['hello', 'world']