Skip to main content

hasManufacturerMapping

FitFileViewer - API Documentation v29.4.0


FitFileViewer - API Documentation / utils/formatting/formatters/formatManufacturer / hasManufacturerMapping

Function: hasManufacturerMapping()

hasManufacturerMapping(manufacturer: string): boolean

Defined in: utils/formatting/formatters/formatManufacturer.js:158

Checks if a manufacturer has a defined mapping

Parameters​

manufacturer​

string

The manufacturer name to check

Returns​

boolean

True if manufacturer has a defined mapping

Example​

// Check if manufacturer has mapping
const hasMapping = hasManufacturerMapping("garmin"); // true