with the new `external` keyword in kotlin-javascri...
# getting-started
with the new
keyword in kotlin-javascript, how could you overload native library functions?
Copy code
external object TheLibrary {
    // I want foo("42") to invoke the javascript library function
    fun foo(input: String)

    // But I want foo(42) to invoke this method which will then invoke
    // the javascript library's foo("42")
    fun foo(input: Int) = foo(input.toString())