ValErrMsgs is a constant that contains error messages corresponding to different types of data. ValidateField checks whether the given value is the correct type. If the value is not the correct type, the function returns the corresponding error message.

The ignoreEmptyVal and ignoreEmpty functions take a value and a validator function as arguments, and return true if the value is an empty string. The handleBaseUnits function takes a value and an optional decimals argument, and returns the value in base units if it is a valid number.


  • ValErrMsgs
  • ValidateField


  • ignoreEmptyVal
  • ignoreEmpty
  • handleBaseUnits