danneu
01/10/2017, 3:05 AM@JsName("nativeFoo")
external fun foo(vararg children: Any?) // each child can be one of null | Array<*> | String
val nums = listOf(1, 2, 3)
foo("hi", null, nums) // Runtime error since nums is a list
foo("hi", null, nums.toTypedArray()) // Works, but user shouldn't have to remember to do this
foo("hi", null, arrayOf(1, 2, 3)) // Works