fn
has
v0.0.2testedFunction to make sure a flag has a specific bit set
Signature
ts
export function has(flag: number, other: number){ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
flag | number | The flag to check |
other | number | Flag to check |
Returns
booleanWhether the flag has the bit set