Check if a value is a string.
import { isString } from '@aws-lambda-powertools/commons/typeUtils';const value = 'foo';if (isString(value)) { // value is a string} Copy
import { isString } from '@aws-lambda-powertools/commons/typeUtils';const value = 'foo';if (isString(value)) { // value is a string}
The value to check
Check if a value is a string.
Example