Skip to content

Documentation / @agentick/shared / markWithSymbol

Function: markWithSymbol()

markWithSymbol<T>(symbol, fn): T

Defined in: identity.ts:62

Mark a function with a symbol for identity checking. Returns the same function with the symbol attached.

Type Parameters

T

T extends Function

Parameters

symbol

symbol

The symbol to attach

fn

T

The function to mark

Returns

T

The same function with the symbol attached

Released under the ISC License.