Preparing search index...

    Function mergeQuantities

    • Returns the sum of two numeric quantity strings, or the non-empty side when one is missing/empty. Falls back to incoming when at least one side is non-numeric.

      Parameters

      • existing: string | undefined
      • incoming: string | undefined

      Returns string