2020-03-04 11:53:56 +01:00

4 lines
90 B
TypeScript

export function isString(val: any): val is string {
return typeof val === 'string';
}