import { findLastIndex } from "https://deno.land/std@0.105.0/collections/mod.ts";
Returns the index of the last element in the given array matching the given predicate
Example:
import { findLastIndex } from "./find_last_index.ts";
import { assertEquals } from "../testing/asserts.ts";
const numbers = [ 4, 2, 7 ]
const lastIndexNumber = findLastIndex(numbers, it => it % 2 === 0)
assertEquals(lastIndexNumber, 1)