7 lines
111 B
TypeScript
7 lines
111 B
TypeScript
|
// @strictNullChecks: true
|
||
|
function foo(x: unknown) {
|
||
|
if (typeof x === "object") {
|
||
|
x
|
||
|
}
|
||
|
}
|