API Reference
    Preparing search index...
    • Check if a value is a string.

      Parameters

      • value: unknown

        The value to check

      Returns value is string

      import { isString } from '@aws-lambda-powertools/commons/typeUtils';

      const value = 'foo';
      if (isString(value)) {
      // value is a string
      }