import toKey from '../../attributes/properties/toKey'
const fromSetToObj = <Type>(
collection: Set<Type>,
result = {}
): { [Key in keyof Type]: Type[Key] } => {
let index = -1
collection.forEach((value, key) => {
result[toKey(++index)] = value
})
return result
}
export { fromSetToObj }
export default fromSetToObj