Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rambda/mod.ts>lastIndexOf

Faster and smaller alternative to Ramda
Go to Latest
function lastIndexOf
import { lastIndexOf } from "https://deno.land/x/rambda@9.2.1/mod.ts";

It returns the last index of target in list array.

R.equals is used to determine equality between target and members of list.

If there is no such index, then -1 is returned.

Parameters

target: T
list: T[]

Returns

number

Parameters

target: T

Returns

(list: T[]) => number