Mapper
Last updated
Last updated
[data/array/Mapper]
Maps array. External node(s) receive each item and send back a mapped item. Example: https://github.com/Cranq-io/cranq-tutorials/blob/main/reference/3_querying_data/3_3_mappers/README.md#using-mappers
Keywords: foreach, iterate, project, loop
array: any[]
Recieves array to be mapped. Example: ["Foo", "Bar"]
mapped item: any[][number]
Recieves the current (by tag) item, mapped. Example: "Foo A"
mapped: any[][number][]
Sends the mapped array. Example: ["Foo A", "Bar A"]
item: any[][number]
Sends the current item. Example: "Foo"
index: number