Options
All
  • Public
  • Public/Protected
  • All
Menu

Type aliases

Type aliases

GreaterEq

GreaterEq<N1, N2>: N1 extends unknown ? N2 extends unknown ? _GreaterEq<IterationOf<N1>, IterationOf<N2>> : never : never

Check if a [[Number]] is greater or equal to another one

Type parameters

  • N1: number

    to compare

  • N2: number

    to compare to

returns

Boolean

example

import {N} from 'ts-toolbelt'

type test0 = N.GreaterEq<'7', '5'> // True
type test1 = N.GreaterEq<'5', '5'> // True
type test2 = N.GreaterEq<'5', '7'> // False

  • 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.