Skip to main content
Deno.AtomicOperation.prototype.max - Deno documentation
method Deno.AtomicOperation.prototype.max
AtomicOperation.prototype.max(
key: KvKey,
n: bigint,
): this
Shortcut for creating a `max` mutation. This method wraps `n` in a [`Deno.KvU64`](../././~/Deno.KvU64), so the value of `n` must be in the range `[0, 2^64-1]`.

Parameters

key: KvKey
n: bigint

Return Type

this