es-toolkit
es-toolkit copied to clipboard
It'd be neat if Array functions countBy, groupBy, keyBy could return a Map if specified
Right now the functions countBy, groupBy, keyBy return an object/dict, which is good. But there are times I want a more complex key to be indexed, and a Map type would be preferrable. It'd be neat if that were a possible output, either via another function, or parameter specification