var f = function(o){ return this+":"+o+"::"+(typeof this)+":"+(typeof o) };// "2:2::object:string"
var f = function(o){ return this+":"+(typeof this)+":"+(ty
当应用于空对象时,keyof运算符使我感到困惑。示例代码:const k : Array<keyof typeof o> = [];为什么是never类型?当像这样更改对象时,类型是有意义的:const k : Array<keyof typeof o> = [];
// k has the type ("