Skip to content

isString

Test if a value is a string.

Usage

js
import { isString } from '@studiometa/js-toolkit/utils';

isString('foo'); // true
isString(123); // false

Parameters

  • value (any): the value to test

Return value

Returns true if the given value is a string, false otherwise.

MIT Licensed