Home Reference Source

Function

Static Public Summary
public

index(code: string, showLabel: boolean, isItem: boolean): *

HS code is best represented without dots and labels for processing.

Static Public

public index(code: string, showLabel: boolean, isItem: boolean): * source

HS code is best represented without dots and labels for processing. However, that representaton is hard to read.

Params:

NameTypeAttributeDescription
code string

HS code.

showLabel boolean
  • optional
  • default: false

HS category label. e.g. heading, subheading, chapter etc.

isItem boolean
  • optional
  • default: false

Is this a product category item? I.e., does it have tariffs?

Return:

*