2022-01-25 13:22:21 +01:00

4 lines
94 B
TypeScript

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