Files
AFFiNE-Mirror/blocksuite/docs/api/@blocksuite/block-std/gfx/functions/generateKeyBetweenV2.md
2025-03-17 12:51:08 +00:00

616 B

@blocksuite/block-std


BlockSuite API Documentation / @blocksuite/block-std / gfx / generateKeyBetweenV2

Function: generateKeyBetweenV2()

generateKeyBetweenV2(a, b): string

generate a key between a and b, the result key is always satisfied with a < result < b. the key always has a random suffix, so there is no need to worry about collision.

make sure a and b are generated by this function.

Parameters

a

null | string

b

null | string

Returns

string