hasPatchToken
Checks if a function has a specific patch token.
Import:
import { hasPatchToken } from 'obsidian-dev-utils/obsidian/components/monkey-around-component';Signature:
function hasPatchToken(fn: GenericFunction, patchToken: symbol): booleanParameters:
| Parameter | Type | Description |
|---|---|---|
fn | GenericFunction | The function to check. |
patchToken | symbol | The patch token to check for. |
Returns: boolean — Whether the function has the patch token.