Options
All
  • Public
  • Public/Protected
  • All
Menu

Type aliases

Type aliases

Absolute

Absolute<N>: N extends unknown ? _Absolute<IterationOf<N>>[0] : never

Get the absolute value of a [[Number]]

Type parameters

  • N: number

    to absolute

returns

string | number | boolean

example

import {N} from 'ts-toolbelt'

type test0 = N.Absolute<'-20'>      // '20'

type test1 = N.Absolute<'-20', 's'> // '20'
type test2 = N.Absolute<'-20', 'n'> //  20

  • Inherited
  • Protected
  • Private
  • Static
  • Module
  • Object
  • Property
  • Function
  • Variable
  • Index
  • Type
  • Class
  • Interface
  • Enum
  • Constructor
  • Getter/Setter
Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.