traits.ts
5 lines
| 246 B
| video/mp2t
|
TypeScriptLexer
|
|
r0 | import { primitive } from "./interfaces"; | |
| export function isPrimitive(val: any): val is primitive { | |||
| return (val === null || val === undefined || typeof (val) === "string" || | |||
| typeof (val) === "number" || typeof (val) === "boolean"); | |||
| } |
