kernl API
    Preparing search index...

    Function splitId

    • Split a composite id on its first :. Everything after it belongs to the provider.

      Parameters

      Returns NamespacedId | undefined

      The two halves, or undefined when id has no provider prefix.

      splitId('private:direct:ab,cd'); // { providerId: 'private', innerId: 'direct:ab,cd' }
      splitId('orphan'); // undefined