fn

has

v0.0.2tested

Function to make sure a flag has a specific bit set

Signature

ts
export function has(flag: number, other: number){ ... }

Parameters

ParameterTypeDescription
flagnumberThe flag to check
othernumberFlag to check

Returns

booleanWhether the flag has the bit set