Global

Methods

setSigFig(number, maxSigsopt) → {string}

Description:
  • Smartly set the precision (decimal) on a value based off of the significant digit maximum. For example, calling with 3.34 when the max sig figs allowed is 5 would return '3.3400', the representation number of decimals IF they weren't zeros.

Source:
Parameters:
Name Type Attributes Default Description
number number 0

number to manipulate

maxSigs number <optional>

default 5

Returns:

str

Type
string

Type Definitions

PromiseThrottle

Description:
  • A Promise Throttle instance

Source:
Properties:
Name Type Description
add function

add a promise to be throttled

A Promise Throttle instance

Type:
  • object