tryError Documentation

Function: hasFlag()
Function

```ts function hasFlag(flags, flag): boolean; ``` Defined in: [bitflags.ts:39](https://github.com/oconnorjohnson/try-error/blob/e3ae0308069a4fba073f4543d527ad76373db795/src/bitflags.ts#L39) Check if a flag is set

tryError API Documentation v0.0.1-alpha.1


tryError API Documentation / hasFlag

Function: hasFlag()

function hasFlag(flags, flag): boolean;

Defined in: bitflags.ts:39

Check if a flag is set

Parameters

flags

number

flag

ErrorFlags

Returns

boolean