you can just use fluid.transform for this. It has a similar signature to fluid.each but it modifies each of the values and returns the new array/object.