ChemPal Documentation - v1.18.0
    Preparing search index...

    Function isDropBadgeText

    • Whether the badge is showing price drops.

      Parameters

      • text: string

        The badge's current text

      Returns boolean

      True when it was set by showDropBadge

      isDropBadgeText('↓2'); // true
      isDropBadgeText('2'); // false
      export function isDropBadgeText(text: string): boolean {
      return text.startsWith(DROP_PREFIX);
      }