I'm sorry, but my previous PR extended a protocol to js/String in ClojureScript. Turns out that that effectively modifies String.prototype. Using the symbolic value string as target for extend-type is the safe way to implement protocols to built-ins in ClojureScript.
I'm sorry, but my previous PR extended a protocol to
js/String
in ClojureScript. Turns out that that effectively modifiesString.prototype
. Using the symbolic valuestring
as target forextend-type
is the safe way to implement protocols to built-ins in ClojureScript.