Last active
June 10, 2016 10:18
-
-
Save viebel/1fbc6e70f69ea339c0f36f84edf10859 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(extend-type object | |
ILookup | |
(-lookup | |
([this k] | |
(-lookup this k nil)) | |
([this k not-found] | |
(let [k (name k)] | |
(if (.hasOwnProperty this k) | |
(aget this k) | |
not-found))))) | |
[ | |
(:language #js {:language "clojure"}) | |
(:format #js {:language "clojure"}) | |
(:format #js {:language "clojure"} :edn) | |
] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment