Graphorin API reference v0.15.1
Graphorin API reference / @graphorin/core / / proactiveOutcomeWithinGrant
Function: proactiveOutcomeWithinGrant()
ts
function proactiveOutcomeWithinGrant(kind, grant): boolean;Defined in: packages/core/src/types/proactive.ts:59
Stable
true when kind sits at or below grant on the ladder. Deterministic, pure - the ladder routing policy helper.
Parameters
| Parameter | Type |
|---|---|
kind | ProactiveOutcomeKind |
grant | ProactiveOutcomeKind |
Returns
boolean