UnitList.convert()method
convert(amount: number, sourceKey: K, targetKey: K): number
Convert an amount from a unit in this list to another unit in this list.
convert(amount: number, sourceKey: K, targetKey: K): number
Convert an amount from a unit in this list to another unit in this list.