MCPcopy Create free account
hub / github.com/TanStack/db / mapIterable

Function mapIterable

packages/db-ivm/src/utils.ts:139–146  ·  view source on GitHub ↗
(
  it: Iterable<T>,
  fn: (t: T) => U,
)

Source from the content-addressed store, hash-verified

137}
138
139export function* mapIterable<T, U>(
140 it: Iterable<T>,
141 fn: (t: T) => U,
142): Iterable<U> {
143 for (const t of it) {
144 yield fn(t)
145 }
146}
147
148export type HRange = [number, number] // half-open [start, end[ i.e. end is exclusive
149

Callers

nothing calls this directly

Calls 1

fnFunction · 0.85

Tested by

no test coverage detected