fügt sich in Ihre Strukturen ein. Nicht umgekehrt.

Die Open-Source-KI-Plattform für den DACH-Mittelstand.
Self-hosted oder in Ihrer Cloud.

Oberfläche

Integration

Individualisierung

Assistanten

MCP

You
Can you write a debounce function in TypeScript?
Assistant
Sure! Here's a small, fully-typed debounce that delays calling `fn` until it stops being invoked for `wait` ms:
typescript
function debounce<A extends unknown[]>(
  fn: (...args: A) => void,
  wait: number,
) {
  let timer: ReturnType<typeof setTimeout>;
  return (...args: A) => {
    clearTimeout(timer);
    timer = setTimeout(() => fn(...args), wait);
  };
}
You
Nice. How would I cancel a pending call?
Assistant
Return a `cancel` method alongside the debounced function and call `clearTimeout(timer)` from it — then `debounced.cancel()` drops any pending invocation. You'd typically wire that into a component's cleanup so it doesn't fire after unmount.

Start

Prompt

Freigabe

Oberfläche

Integration

Individualisierung

Assistanten

MCP

You
Can you write a debounce function in TypeScript?
Assistant
Sure! Here's a small, fully-typed debounce that delays calling `fn` until it stops being invoked for `wait` ms:
typescript
function debounce<A extends unknown[]>(
  fn: (...args: A) => void,
  wait: number,
) {
  let timer: ReturnType<typeof setTimeout>;
  return (...args: A) => {
    clearTimeout(timer);
    timer = setTimeout(() => fn(...args), wait);
  };
}
You
Nice. How would I cancel a pending call?
Assistant
Return a `cancel` method alongside the debounced function and call `clearTimeout(timer)` from it — then `debounced.cancel()` drops any pending invocation. You'd typically wire that into a component's cleanup so it doesn't fire after unmount.

Start

Prompt

Freigabe

Entwickelt für Ihre Arbeitsweise

Alles, was Sie brauchen, um KI sicher und effizient in Ihrem gesamten Unternehmen bereitzustellen.

Native Zugriffskontrolle

Berücksichtigt Ihre bestehenden Berechtigungsstrukturen. Benutzer sehen nur das, worauf sie bereits Zugriff haben.

Datenschutz an erster Stelle

Ihre Daten bleiben Ihre. On-Premise-Bereitstellungsoptionen stellen sicher, dass sensible Informationen Ihre Infrastruktur niemals verlassen.

Open Source

Vollständig transparenter Quellcode. Selbst hosten oder unsere Cloud nutzen. Sie behalten die volle Kontrolle und das Eigentum.

Bereit, die Kontrolle über Ihre KI zu übernehmen?

Kontaktieren Sie unser Vertriebsteam, um loszulegen.

KI, die sich einfügt

Erato Labs

KI, die sich einfügt

Erato Labs

KI, die sich einfügt

Erato Labs