summaryrefslogtreecommitdiff
path: root/src/jsMain/kotlin/moe/nea89/website/util.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/jsMain/kotlin/moe/nea89/website/util.kt')
-rw-r--r--src/jsMain/kotlin/moe/nea89/website/util.kt6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/jsMain/kotlin/moe/nea89/website/util.kt b/src/jsMain/kotlin/moe/nea89/website/util.kt
new file mode 100644
index 0000000..47c7843
--- /dev/null
+++ b/src/jsMain/kotlin/moe/nea89/website/util.kt
@@ -0,0 +1,6 @@
+package moe.nea89.website
+
+fun <T> dyn(init: T.() -> Unit): dynamic = js("{}").also(init)
+
+
+