📄 useArraySome¶
📊 Analysis Summary¶
| Metric | Count |
|---|---|
| 🔧 Functions | 1 |
| 📦 Imports | 4 |
| 🟢 Vue Composition API | 1 |
| 📑 Type Aliases | 1 |
📚 Table of Contents¶
🛠️ File Location:¶
📂 packages/shared/useArraySome/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¶
useArraySome(list: MaybeRefOrGetter<MaybeRefOrGetter<T>[]>, fn: (element: T, index: number, array: Mayb…): UseArraySomeReturn¶
Reactive Array.some
Parameters:
listany: the array was called upon.fnany: a function to test each element.
Returns: undefined
true if the fn function returns a truthy value for any element from the array. Otherwise, false.
See: https://vueuse.org/useArraySome
Tags: @__NO_SIDE_EFFECTS__
Raw JSDoc
/**
* Reactive `Array.some`
*
* @see https://vueuse.org/useArraySome
* @param list - the array was called upon.
* @param fn - a function to test each element.
*
* @returns **true** if the `fn` function returns a **truthy** value for any element from the array. Otherwise, **false**.
*
* @__NO_SIDE_EFFECTS__
*/
Calls:
computed (from vue)toValue(list).somefntoValue (from vue)
Code
Type Aliases¶
UseArraySomeReturn¶
Generated by Syntax Scribe