Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 713 Bytes

isOption.md

File metadata and controls

35 lines (21 loc) · 713 Bytes

happy-rustyDocs


happy-rusty / isOption

Function: isOption()

function isOption<T>(o): o is Option<T>

Checks if a value is an Option.

Type Parameters

Type Parameter Description
T The expected type of the value contained within the Option.

Parameters

Parameter Type Description
o unknown The value to be checked as an Option.

Returns

o is Option<T>

true if the value is an Option, otherwise false.

Defined in

utils.ts:11