Options
All
  • Public
  • Public/Protected
  • All
Menu

Type aliases

Type aliases

Lower

Lower<N1, N2>: N1 extends unknown ? N2 extends unknown ? _Lower<IterationOf<N1>, IterationOf<N2>> : never : never

Check if a [[Number]] is lower than another one

Type parameters

  • N1: number

    to compare

  • N2: number

    to compare to

returns

Boolean

example

import {N} from 'ts-toolbelt'

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

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