<T>(t: T): T import {identity} from '@fuzdev/fuz_util/function.js'; Returns the first arg.
t
type
Treturns
T generics
identity<T>6 declarations
<T>(t: T): T import {identity} from '@fuzdev/fuz_util/function.js'; Returns the first arg.
tTT identity<T>T(...args: any[]): any import {noop} from '@fuzdev/fuz_util/function.js'; Does nothing when called.
argsany[]any (...args: any[]): Promise<any> import {noop_async} from '@fuzdev/fuz_util/function.js'; Async function that returns a resolved promise.
argsany[]Promise<any> Promise<void> import {resolved} from '@fuzdev/fuz_util/function.js'; A singleton resolved Promise.
Thunk<T> import type {Thunk} from '@fuzdev/fuz_util/function.js'; Represents a value wrapped in a function. Useful for lazy values and bridging reactive boundaries in Svelte.
Thunk<T>T(call)type (): T
T<T>(value: T | Thunk<T>): T import {unthunk} from '@fuzdev/fuz_util/function.js'; Returns the result of calling value if it's a function,
otherwise it's like the identity function and passes it through.
valueT | Thunk<T>T unthunk<T>T