I noticed this part in the proposal
groupBy calls callbackfn once for each element in items, in ascending order, and constructs a new Object of arrays. Each value returned by callbackfn is coerced to a property key
Does JS allow arbitrary objects as keys? I am asking because `group-by` in ClojureScript is quite flexible. e.g. you can find anagrams like so (def words ["meat" "mat" "team" "mate" "eat" "tea"])
(group-by set words) ; set is a function that creates sets from collections
;; => {#{\a \e \m \t} ["meat" "team" "mate"]
;; #{\a \m \t} ["mat"]
;; #{\a \e \t} ["eat" "tea"]}
I am wondering how one could translate this using Object.groupBy as specified in the proposal.