* Map each value in the traversal to a new value. * @param mapper A function that maps the current value to a new value.
(mapper: (value: TValue) => TNextValue)
| 1294 | * @param mapper A function that maps the current value to a new value. |
| 1295 | */ |
| 1296 | public map<const TNextValue>(mapper: (value: TValue) => TNextValue) { |
| 1297 | return new ValueTraversal<TSchema, TNextValue>(this.graph, [ |
| 1298 | ...this.steps, |
| 1299 | new MapElementsStep<TValue>({ |
| 1300 | mapper, |
| 1301 | }), |
| 1302 | ]); |
| 1303 | } |
| 1304 | |
| 1305 | /** |
| 1306 | * Filter the values in the traversal using a predicate. |
nothing calls this directly
no outgoing calls
no test coverage detected