Minor changes

This commit is contained in:
SukkaW
2025-02-01 15:04:28 +08:00
parent ccb4f70ebd
commit 6f7c743d89
7 changed files with 106 additions and 67 deletions

View File

@@ -3,6 +3,8 @@ import fs from 'node:fs';
import type { PathLike } from 'node:fs';
import fsp from 'node:fs/promises';
export type MaybePromise<T> = T | Promise<T>;
export function fastStringCompare(a: string, b: string) {
const lenA = a.length;
const lenB = b.length;