Types de comparaison de typeScript

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