Join Slack
Powered by
Does the equivalent of <https://developer.mozilla....
# javascript
r
Reuben F
09/16/2021, 11:47 PM
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
turansky
09/17/2021, 12:21 AM
Do you mean JS source?
r
Reuben F
09/17/2021, 12:26 AM
Yes
t
turansky
09/17/2021, 12:55 AM
Copy code
val f = { i: Int -> 2 * i} println(f.asDynamic().toString())
r
Reuben F
09/17/2021, 1:19 AM
Ah nice. thanks
3
Views
Open in Slack
Previous
Next