Power-up: Transforming Data

Learn how to transform list and object type data with the help of formula functions MAP, REDUCE, and MERGE.

The formula functions used in this video:

MAP(pageVars.groceryList, SET_KEY( item, "index", index ))

REDUCE(pageVars.groceryList, IF(item.price < accumulator.price, item, accumulator)), "name"

MERGE( [ {item: "ketchup", manufacturer: "Heinz"} , {item: "ketchup", price: 3.00} ] )

‚Äč