Map an array or object.