apply a transformation to each item within an object (async/sync)