Creates an object from the given array and mapping function.
The mapping function is called with each array element. It must return a tuple of the object key and value:
up.util.mapObject(['alice', 'bob'], function(element) {
return [element.toUpperCase(), element.length]
})
// result: { ALICE: 5, BOB: 3 }
The array from which to create an object.
Each array element will become a property of the created object.
A function that is called with each array element.
It must return a tuple of the object key and value.