Creates a Map of an iterable object mapping each item to the specified key. The key can be a property name or a function. If the key is not unique the last item will be used that matches the key.
iterable items to map
function to get the map by key
Optional
function to get the the item value; defaults to the items being iterated
Creates a Map of an iterable object mapping each item to the specified key. The key can be a property name or a function. If the key is not unique the last item will be used that matches the key.