Check if string is undefined, null, empty.
The value to check
import { isStringUndefinedNullEmpty } from '@aws-lambda-powertools/commons/typeUtils';const value = 'foo';if (isStringUndefinedNullEmpty(value)) { // value is either undefined, null, or an empty string} Copy
import { isStringUndefinedNullEmpty } from '@aws-lambda-powertools/commons/typeUtils';const value = 'foo';if (isStringUndefinedNullEmpty(value)) { // value is either undefined, null, or an empty string}
Check if string is undefined, null, empty.