@mvp-tech/utils
v1.6.0
Published
Common MVP Tech utils
Downloads
7
Readme
@mvp-tech/utils
Common utils.
📦 Installation
yarn add @mvp-tech/utils
🔨 Usage
import { formatAmount } from "@mvp-group/utils";
List of all utils
- chunk - creates an array of elements split into groups the length of size.
- formatAmount - formats an amount value.
- getNumberSeparators - returns separators for decimals and thousands according to localization.
- isFilledArray - checks if a value is a filled array.
- isOverflown - checks if an element's content is overflowing.
- noop - empty function that returns
undefined
. - roundFloat - rounds a floating point number with given precision.
- splitAmount - formats an amount with grouped thousands.