Skip to content

isString

Determine if a value is a String

63 bytes

Usage

Pass in a value and get a boolean telling you if the value is a string.

import * as
import _
_
from 'radashi'
import _
_
.
function isString(value: unknown): value is string
export isString

Checks if the given value is a string.

@seehttps://radashi.js.org/reference/typed/isString

@example

isString('abc') // => true
isString(123) // => false

@version12.1.0

isString
('hello') // => true
import _
_
.
function isString(value: unknown): value is string
export isString

Checks if the given value is a string.

@seehttps://radashi.js.org/reference/typed/isString

@example

isString('abc') // => true
isString(123) // => false

@version12.1.0

isString
(['hello']) // => false