x/oak/keyStack.ts

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Very Popular
Go to Latest
method KeyStack.prototype.indexOf
import { KeyStack } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v11.1.0/keyStack.ts?p=prototype.indexOf&s=KeyStack";

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[src]
digest: string[src]

Returns

Promise<number>[src]