Namespace: string
Functions
addOrdinalSuffix
▸ addOrdinalSuffix(value
): string
Returns the value and the ordinal suffix for the specified value. For instance: 1st
, 103rd
or 22nd
Parameters
Name | Type |
---|---|
value |
number |
Returns
string
formatToShortStyleAndSymbolUnit
▸ formatToShortStyleAndSymbolUnit(count
): string
Formats large numbers to a shorter string format using symbol units like K (thousand), M
(million) and B (billion). For instance: 2.50B
, 1.25B
, 2.35M
, 12.5K
, 255
, 1M
, 12K
Parameters
Name | Type |
---|---|
count |
number |
Returns
string
hash
▸ hash(str
): number
String hash (Java implementation).
Parameters
Name | Type |
---|---|
str |
string |
Returns
number