Created
July 4, 2017 22:18
-
-
Save iku000888/90d2c018bd3cf2a6f40f26be443f4299 to your computer and use it in GitHub Desktop.
Objectに対してaget/asetを使うな、という話 ref: http://qiita.com/iku000888/items/069cf2a84c2d9be5f2da
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
(.-property an-object) |
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
(aget an-object "property") |
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
(cljs.user.an-object["property"]) |
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
(require '[goog.object :as o]) | |
(o/get #js {:foo "bar} "foo") | |
=> "bar" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment