Added an example for mapArrayToObject