@fortit/base
v1.0.1
Published
## Installation
Downloads
22
Readme
base
Installation
npm i @fortit/base
API
Slots
None
Properties/Attributes
None
Methods
| Name | Description |
| --------------------------------------------------------------------------------------------------------------- | -------------------------------------------------- |
| debounce = (callback: DebounceCallbackFunction, debounceTime = 300) => void
| Debounce a function call |
| dynMsg = (key: string) => string
| Return message string from client/i18n/messages
. |
| formatCurrency = (number: string \| number, locale = 'de-CH', style = 'currency', currency = 'CHF') => string
| Format number to CHF 12'560
. |
| formatDate = (timestamp?: number) => string
| Format timestamp to dd.MM.yyyy
. |
| formatDateTime = (timestamp?: number) => string
| Format timestamp to dd.MM.yyyy HH:mm
. |
Events
None