TypeScript membandingkan jenis

function isString(value) {
    return typeof value === 'string' || value instanceof String;
}
Raj Prajapati