index_object_by_array (npm): Create an object with indexes from an array, first param: Array, second param: key used to create the index.
Keywords: index