Skip to content

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

172 B
Raw Blame
export function tap<T>(t: T, cb: (t: T) => void): T {
  cb(t);
  return t;
}

export function debugPrint<T>(t: T): T {
  return tap(t, (t) => {
    console.log(t);
  });
}