Core API Overview > @adpt/core > Adapt > domMap
Adapt.domMap() function
Signature:
export declare function domMap<T, E extends AdaptMountedElement = AdaptMountedElement>(dom: E | null, f: (el: E) => T): T[];
Parameters
Parameter | Type | Description |
---|---|---|
dom | E | null | |
f | (el: E) => T |
Returns:
T[]