es-toolkit icon indicating copy to clipboard operation
es-toolkit copied to clipboard

It'd be neat if Array functions countBy, groupBy, keyBy could return a Map if specified

Open tomkennedy22 opened this issue 4 months ago • 1 comments

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

tomkennedy22 avatar Jul 26 '25 05:07 tomkennedy22