Currently the proposal has both compositeKey which returns a frozen object and compositeSymbol which returns a symbol. The idea was that compositeKey would be useful in cases where the value needs to be weak (e.g. in a weakmap), however now that symbols are allowable as weakmap keys we really only need compositeSymbol.
Currently the proposal has both
compositeKey
which returns a frozen object andcompositeSymbol
which returns a symbol. The idea was thatcompositeKey
would be useful in cases where the value needs to be weak (e.g. in a weakmap), however now that symbols are allowable as weakmap keys we really only needcompositeSymbol
.