Functions
Const map
- map<Mapped, Payload>(children: SociablyNode, mapper: NodeMapper<Mapped, Payload>, prefix: string, payload: Payload): undefined | null | Mapped[]
Type parameters
Parameters
mapper: NodeMapper<Mapped, Payload>
prefix: string
payload: Payload
Returns undefined | null | Mapped[]
Const reduce
- reduce<Reduced, Payload>(children: SociablyNode, reducer: NodeReducer<Reduced, Payload>, initial: Reduced, prefix: string, payload: Payload): Reduced
Type parameters
Parameters
reducer: NodeReducer<Reduced, Payload>
initial: Reduced
prefix: string
payload: Payload
Returns Reduced
Const traverse
- traverse<Context>(children: SociablyNode, prefix: string, context: Context, callback: TraverseNodeCallback<Context>): number
Type parameters
Parameters
prefix: string
context: Context
callback: TraverseNodeCallback<Context>
Returns number