Does the equivalent of <https://developer.mozilla....
# javascript
r
Does the equivalent of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/toString exist? I.e. can I get at the source after it has been compiled to js?
t
Do you mean JS source?
r
Yes
t
Copy code
val f = { i: Int -> 2 * i}
println(f.asDynamic().toString())
r
Ah nice. thanks