The typeof operator returns a string indicating the type of its argument, and the set of returned values is limited:

Compare a typeof expression to anything else, and the result is predefined: false.

Noncompliant Code Example

function someFunc(x: any): boolean {
  return typeof x === "Number"; // Noncompliant, function will always return 'false'
}

Compliant Solution

function someFunc(x: any): boolean {
  return typeof x === "number";
}