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: 17 December, 2024