Files
supabase/apps/studio/lib/void.ts
T
2024-07-01 16:35:02 +08:00

12 lines
215 B
TypeScript

// Because {} !== {} in JS, we need a shared object instances for comparison
export const EMPTY_OBJ = {}
export const EMPTY_ARR = []
export function noop() {}
export function identity<T>(x: T): T {
return x
}