The typeof operator returns a string indicating the type of its argument, and the set of returned values is limited:
null and any other object) Compare a typeof expression to anything else, and the result is predefined: false.
function someFunc(x: any): boolean {
return typeof x === "Number"; // Noncompliant, function will always return 'false'
}
function someFunc(x: any): boolean {
return typeof x === "number";
}