6 lines
No EOL
125 B
TypeScript
6 lines
No EOL
125 B
TypeScript
// @declaration: true
|
|
// @module: commonjs
|
|
|
|
export function f(x: any): x is number {
|
|
return typeof x === "number";
|
|
} |