Echo JS 0.11.0

<~>
kali 944 days ago. link 1 point
In the final example about strictBindCallApply, the "solution" is presented as:

    const numHandler = (a: number) => {
      console.log(`log ${a}!`)
    }
    
    numHandler.call(undefined, '25')

This will trigger the same warning from tsc, because the 25 has been enclosed in quotes making it, still, a string.

(Also, all the code in that last section is missing the > in the =>)

P.S. The server at blog.openreplay.com seems to go down frequently.

Replies