Skip to main content
Module

x/oak/tssCompare.ts>compare

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Extremely Popular
Go to Latest
function compare
import { compare } from "https://deno.land/x/oak@v10.6.0/tssCompare.ts";

Compare two strings, Uint8Arrays, ArrayBuffers, or arrays of numbers in a way that avoids timing based attacks on the comparisons on the values.

The function will return true if the values match, or false, if they do not match.

Returns

Promise<boolean>