Which programming language is this?
function isString(x: unknown): x is string {
return typeof x === 'string';
}
Answer: TypeScript
The
Play Programming Languages ▸
x is string type predicate return type is TypeScript.