Files
AFFiNE-Mirror/blocksuite/docs/api/@blocksuite/std/gfx/functions/generateNKeysBetween.md
2025-12-10 16:02:28 +08:00

738 B

BlockSuite API Documentation


BlockSuite API Documentation / @blocksuite/std / gfx / generateNKeysBetween

Function: generateNKeysBetween()

generateNKeysBetween(a, b, n, digits?): string[]

same preconditions as generateKeysBetween. n >= 0. Returns an array of n distinct keys in sorted order. If a and b are both null, returns [a0, a1, ...] If one or the other is null, returns consecutive "integer" keys. Otherwise, returns relatively short keys between a and b.

Parameters

a

string | null | undefined

b

string | null | undefined

n

number

digits?

string

Returns

string[]