Skip to main content
Module

std/bytes/mod.ts>findLastIndex

Deno standard library
Go to Latest
function findLastIndex
import { findLastIndex } from "https://deno.land/std@0.75.0/bytes/mod.ts";

Find last index of binary pattern from a. If not found, then return -1.

Parameters

source: Uint8Array

source array

pat: Uint8Array

pattern to find in source array

Returns

number