Closed azz closed 7 years ago
Currently the following is both invalid syntax and extremely confusing:
const { typeof } = Builtin; // SyntaxError typeof ([]); // "Array"
Why not rename to typeOf such that the following is valid and not ambiguous?
typeOf
const { typeOf } = Builtin; typeOf([]); // "Array"
Makes sense.
I tend to prefer the symmetry of Builtin.typeof to typeof but concede the point. Renaming is good.
Builtin.typeof
typeof
Currently the following is both invalid syntax and extremely confusing:
Why not rename to
typeOf
such that the following is valid and not ambiguous?