📄 useArrayFindIndex¶
📊 Analysis Summary¶
| Metric | Count |
|---|---|
| 🔧 Functions | 1 |
| 📦 Imports | 4 |
| 🟢 Vue Composition API | 1 |
| 📑 Type Aliases | 1 |
📚 Table of Contents¶
🛠️ File Location:¶
📂 packages/shared/useArrayFindIndex/index.ts
📦 Imports¶
| Name | Source |
|---|---|
ComputedRef |
vue |
MaybeRefOrGetter |
vue |
computed |
vue |
toValue |
vue |
Vue Composition API¶
| Name | Type | Reactive Variables | Composables |
|---|---|---|---|
computed |
computed | none | none |
Functions¶
useArrayFindIndex(list: MaybeRefOrGetter<MaybeRefOrGetter<T>[]>, fn: (element: T, index: number, array: Mayb…): UseArrayFindIndexReturn¶
Reactive Array.findIndex
Parameters:
listany: the array was called upon.fnany: a function to test each element.
Returns: undefined
the index of the first element in the array that passes the test. Otherwise, "-1".
See: https://vueuse.org/useArrayFindIndex
Tags: @__NO_SIDE_EFFECTS__
Raw JSDoc
Calls:
computed (from vue)toValue(list).findIndexfntoValue (from vue)
Code
Type Aliases¶
UseArrayFindIndexReturn¶
Generated by Syntax Scribe