API Reference
    Preparing search index...
    • Check if a value is an integer number.

      Parameters

      • value: unknown

        The value to check

      Returns value is number

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

      const value = 42;
      if (isIntegerNumber(value)) {
      // value is an integer number
      }