Skip to main content
Module

x/oak/keyStack.ts>KeyStack#indexOf

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Extremely Popular
Go to Latest
method KeyStack.prototype.indexOf
import { KeyStack } from "https://deno.land/x/oak@v10.4.0/keyStack.ts";

Given data and a digest, return the current index of the key in the keys passed the constructor that was used to generate the digest. If no key can be found, the method returns -1.

Parameters

data: Data
digest: string

Returns

Promise<number>