File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -286,6 +286,26 @@ Doing stuff which takes a while
286
286
287
287
Also see [ API docs] ( api.md ) .
288
288
289
+ ## Js-interop
290
+
291
+ Since nbb v0.0.75 [ applied-science/js-interop] ( https://github.com/applied-science/js-interop ) is available:
292
+
293
+ ``` clojure
294
+ (ns example
295
+ (:require [applied-science.js-interop :as j]))
296
+
297
+ (def o #js {:a 1 :b 2 :c 3 })
298
+
299
+ (j/select-keys o [:a :b ]))
300
+ ```
301
+
302
+ Most of this library is supported in nbb, except the following:
303
+
304
+ - destructuring using ` :syms `
305
+ - property access using ` .-x ` notation. In nbb, you must use keywords.
306
+
307
+ See the [ example] ( examples/js-interop/example.cljs ) of what is currently supported.
308
+
289
309
## Examples
290
310
291
311
See the [ examples] ( examples ) directory for small examples.
Original file line number Diff line number Diff line change 1
- (ns js-interop
1
+ (ns example
2
2
(:require [applied-science.js-interop :as j]))
3
3
4
4
(def o #js {:x #js {:y 1 :someFn (fn [x] x)}
You can’t perform that action at this time.
0 commit comments