Skip to main content

isString

Checks if value is classified as a String primitive or object.

API

function isString(value: unknown): value is string;

Usage

import { isString } from '@feedzai/js-utilities';

isString('abc')
// true

isString(1)
// false