Problem
Implement groupBy(collection, iteratee). The iteratee can be a function, or a string property path (including deep paths such as "address.city"). Return an object mapping each computed key to the array of items that produced it.
function groupBy(collection, iteratee) {
// your code
}