I would like to know if there is any way of overriding the behaviour of the typeof
operator. Specifically, I want to return \"string\" when the typeof
That is impossible. The behaviour of native operators cannot be changed.
Related links:
typeof
, but would enable you to define your own additional types.