function isLimitSubset(subset, superset): boolean;
function isLimitSubset(subset, superset): boolean;
Defined in: packages/db/src/query/predicate-utils.ts:768
Check if one limit is a subset of another. Returns true if the subset limit requirements are satisfied by the superset limit.
The limit requirement to check
number | undefined
The limit that might satisfy the requirement
number | undefined
boolean
true if subset is satisfied by superset
isLimitSubset(10, 20) // true (requesting 10 items when 20 are available)
isLimitSubset(20, 10) // false (requesting 20 items when only 10 are available)
isLimitSubset(10, undefined) // true (requesting 10 items when unlimited are available)
isLimitSubset(10, 20) // true (requesting 10 items when 20 are available)
isLimitSubset(20, 10) // false (requesting 20 items when only 10 are available)
isLimitSubset(10, undefined) // true (requesting 10 items when unlimited are available)
