Skip to content

Latest commit

 

History

History
226 lines (134 loc) · 3.59 KB

convenience.md

File metadata and controls

226 lines (134 loc) · 3.59 KB

@sniptt/guards / convenience

Namespace: convenience

Table of contents

Functions

Functions

isInteger

Const isInteger<U>(term): term is number

Type parameters

Name
U

Parameters

Name Type
term number | U

Returns

term is number

Defined in

guards/convenience.ts:20


isNegativeInteger

Const isNegativeInteger<U>(term): term is number

Type parameters

Name
U

Parameters

Name Type
term number | U

Returns

term is number

Defined in

guards/convenience.ts:32


isNonEmptyArray

Const isNonEmptyArray<T, U>(term): term is T[]

Type parameters

Name
T
U

Parameters

Name Type
term U | T[]

Returns

term is T[]

Defined in

guards/convenience.ts:8


isNonEmptyString

Const isNonEmptyString<U>(term): term is string

Type parameters

Name
U

Parameters

Name Type
term string | U

Returns

term is string

Defined in

guards/convenience.ts:12


isNonNegativeInteger

Const isNonNegativeInteger<U>(term): term is number

Type parameters

Name
U

Parameters

Name Type
term number | U

Returns

term is number

Defined in

guards/convenience.ts:28


isNumberOrNaN

Const isNumberOrNaN<U>(term): term is number

Type parameters

Name
U

Parameters

Name Type
term number | U

Returns

term is number

Defined in

guards/convenience.ts:16


isObjectOrNull

Const isObjectOrNull<T, U>(term): term is T

Type parameters

Name Type
T extends object
U U

Parameters

Name Type
term T | U

Returns

term is T

Defined in

guards/convenience.ts:4


isPositiveInteger

Const isPositiveInteger<U>(term): term is number

Type parameters

Name
U

Parameters

Name Type
term number | U

Returns

term is number

Defined in

guards/convenience.ts:24