hasIndex
The hasIndex function returns a reactive object reflecting whether a given Index exists in the Indexes object, and registers a listener so that any changes will update current.
hasIndex(
indexId: MaybeGetter<string>,
indexesOrIndexesId?: MaybeGetter<undefined | IndexesOrIndexesId>,
): {current: boolean}| Type | Description | |
|---|---|---|
indexId | MaybeGetter<string> | |
indexesOrIndexesId? | MaybeGetter<undefined | IndexesOrIndexesId> | |
| returns | {current: boolean} | A reactive object with a |
Since
v9.1.0