I am having issues with maps in react. when I do s...
# react
w
I am having issues with maps in react. when I do something like
var mymap = mapOf<String, List<Strings>>("hello" to listOf("world 1", "world 2"), "Goodbye", listOf())
val mykeys = mymap.keys
In the broswer this will error with a typeerror of cannot getKeys if I do val mypairs= mymap.toList() I get a type error of getsize
Is there a way to work with maps that will work in the runtime browser?
if I try to change things to be an Array<Pair<String,Array<String>>> I get a typer error of length when trying a for loop iteration over the entries.