npm.io
1.6.0 • Published 3 years ago

@mvp-tech/utils

Licence
UNLICENSED
Version
1.6.0
Deps
0
Size
9 kB
Vulns
0
Weekly
0

@mvp-tech/utils

Common utils.

Release npm Coverage lines Coverage functions Coverage branches Coverage statements

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.