Skip to content

isStringArray

Checks whether a value is an array of strings.

Import:

import { isStringArray } from '@mnaoumov/typescript-lib/type-guards';

Signature:

function isStringArray(value: unknown): boolean

Parameters:

Parameter Type Description
value unknown The value to check.

Returns: boolean — Whether the value is an array whose every item is a string.