Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Type aliases

Variables

Functions

Type aliases

Formatter

Formatter: (arg: any) => string

Type declaration

    • (arg: any): string
    • Parameters

      • arg: any

      Returns string

Variables

Const Fmt

Fmt: {[ K in keyof typeof fmt]: Formatter } = ...

Prepackaged formatters.

Functions

asFormatter

Const isFormatter

Const roundTo

  • roundTo(n: number): (arg: number) => number
  • A higher-order-function that produces a rounding function that rounds to the nearest n.

    Parameters

    • n: number

      scale of rounding

    Returns (arg: number) => number

      • (arg: number): number
      • Parameters

        • arg: number

          The number being rounded

        Returns number

toFormatter

Generated using TypeDoc