Skip to contents

Validate unit

Usage

validateUnit(unit, dimension)

Arguments

unit

String name of the unit

dimension

String name of the dimension.

Details

Check if the unit is valid for the dimension. If not, throw an error