Skip to content

BeechCMS


BeechCMS / @beechcms/core / timingSafeEqual

Function: timingSafeEqual() ​

timingSafeEqual(a, b): boolean

Constant-time comparison of two equal-or-unequal-length strings.

Parameters ​

a ​

string

b ​

string

Returns ​

boolean