mirror of
https://github.com/supabase/supabase.git
synced 2026-10-16 06:39:09 +03:00
12 lines
215 B
TypeScript
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
|
|
}
|