🔗 Function: fromDescendants()
fromDescendants<
T
,E
>(selectors
,reducer
,initialValue
):SignalProducer
<T
>
Defined in: src/core/dom.ts:273
Produce a computed signal from reduced properties of descendant elements
🔗 Type Parameters
🔗 T
T
extends object
🔗 E
E
extends Element
= HTMLElement
🔗 Parameters
🔗 selectors
string
CSS selector for descendant elements
🔗 reducer
(accumulator
, currentElement
, currentIndex
, array
) => T
function to reduce values
🔗 initialValue
T
initial value for reduction
🔗 Returns
signal producer that emits reduced value
🔗 Since
0.13.1