Module

std/bytes/mod.ts>lastIndexOf

Deno standard library
Go to Latest
function lastIndexOf
import { lastIndexOf } from "https://dotland.deno.dev/std@0.131.0/bytes/mod.ts";

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

Parameters

source: Uint8Array

source array

pat: Uint8Array

pattern to find in source array

optional
start = [UNSUPPORTED]

the index to start looking in the source

Returns

number