mirror of
https://github.com/penpot/penpot.git
synced 2025-01-25 07:58:49 -05:00
Add interop ns for tricky js interop calls.
This commit is contained in:
parent
139ee821b7
commit
4b0c8cec07
1 changed files with 13 additions and 0 deletions
13
src/uxbox/util/interop.cljs
Normal file
13
src/uxbox/util/interop.cljs
Normal file
|
@ -0,0 +1,13 @@
|
|||
;; This Source Code Form is subject to the terms of the Mozilla Public
|
||||
;; License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
;; file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
;;
|
||||
;; Copyright (c) 2016 Andrey Antukh <niwi@niwi.nz>
|
||||
|
||||
(ns uxbox.util.interop
|
||||
"Interop helpers.")
|
||||
|
||||
(defn iterable->seq
|
||||
"Convert an es6 iterable into cljs Seq."
|
||||
[v]
|
||||
(seq (js/Array.from v)))
|
Loading…
Add table
Reference in a new issue