FormatsMap Interface

A data structure that associates specific phenomenon with one or more formatting props for specific unit system.

Example:

{
  length: [{
    unitSystems: ["metric"],
    format: formatForCentimeters,
  }, {
    unitSystems: ["imperial", "usCustomary"],
    format: formatForInches,
  }, {
    unitSystems: ["usSurvey"],
    format: formatForUsSurveyInches,
  }]
}

Defined in

Last Updated: 16 April, 2024