UNPKG

@types/safe-compare

Version:
9 lines (7 loc) 285 B
export = safeCompare; /** * Do a constant time string comparison. Always compare the complete strings * against each other to get a constant time. This method does not short-cut * if the two string's length differs. */ declare function safeCompare(a: string, b: string): boolean;