Files
SnowLuma/.pnpm-store/v11/files/84/cfe611d29f3fea5d6cdbaa1cf818eefac2947b37111a4682d5c1bd9fa61f57b66d8254f6e6ff65570d3f809b6215c4754209b8a4154ae27780d417c9642d72
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

14 lines
474 B
Plaintext

/**
* Compares two identifiers, must be numeric strings or truthy/falsy values.
*
* Sorts in ascending order when passed to `Array.sort()`.
*/
export function compareIdentifiers(a: string | null | undefined, b: string | null | undefined): 1 | 0 | -1;
/**
* The reverse of compareIdentifiers.
*
* Sorts in descending order when passed to `Array.sort()`.
*/
export function rcompareIdentifiers(a: string | null | undefined, b: string | null | undefined): 1 | 0 | -1;