ChemPal Documentation - v0.0.13-beta.5
    Preparing search index...
    • Type guard to check if a string is a valid SPIN_SPEED key.

      Parameters

      • key: string

        The string to check

      Returns key is "SLOW" | "MEDIUM" | "FAST" | "VERY_FAST"

      Type predicate indicating if the key is a valid SPIN_SPEED enum key

      export function isSpinSpeed(key: string): key is keyof typeof SPIN_SPEED {
      return key in SPIN_SPEED;
      }