API Reference
    Preparing search index...
    • Check if string is undefined, null, empty.

      Parameters

      • value: unknown

        The value to check

      Returns boolean

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

      const value = 'foo';
      if (isStringUndefinedNullEmpty(value)) {
      // value is either undefined, null, or an empty string
      }