Skip to main content
Module

std/bytes/mod.ts>lastIndexOf

Deno standard library
Go to Latest
function lastIndexOf
import { lastIndexOf } from "https://deno.land/std@0.108.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