Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "Number/IsNegative"

Index

Type aliases

Type aliases

IsNegative

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

Check whether a Number is negative or not

Type parameters

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

_IsNegative

_IsNegative<N>: { '-': 1; '+': 0; '0': 0; }[N[4]]

Type parameters

Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.