dawitt
09/24/2018, 11:59 AMTypeError: ArrayList_init_0 is not a function
runtime error.
console.log("here")
val jsArray = js("[1,2,3]") as Array<Int>
val result = jsArray.filter { it < 5 }
The project compiles without problems and Intellij shows no warnings.
Has anybody else experienced similar issues or has any ideas how to resolve this?Hamza
09/24/2018, 12:00 PMdawitt
09/24/2018, 12:15 PMclass TestApiResponse(val testArray: Array<Int>)
val apiResponse: TestApiResponse = js("{ testArray: [1,2,3,4] }")
console.log(apiResponse.testArray.filter { it > 2 })
Hamza
09/24/2018, 12:16 PMdawitt
09/24/2018, 12:16 PMdawitt
09/24/2018, 12:22 PMdawitt
09/24/2018, 12:29 PMdawitt
09/24/2018, 1:41 PM