Options
All
  • Public
  • Public/Protected
  • All
Menu

Type aliases

Type aliases

IsNegative

IsNegative<N>: _IsNegative<IterationOf<N>>

Check whether a [[Number]] is negative or not

Type parameters

  • N: number

    to check

returns

Boolean

example

import {N} from 'ts-toolbelt'

type test0 = N.IsNegative<'0'>  // False
type test1 = N.IsNegative<'-7'> // True
type test2 = N.IsNegative<'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.