Finds last index of a value.
Alternatives: indexOf, lastIndexOf.
Similar: search, indexOf, isValue, includes.
This is part of package extra-array.
This is browserified, minified version of @extra-array/last-index-of.
It is exported as global variable array_lastIndexOf.
CDN: unpkg, jsDelivr.
array.lastIndexOf(x, v, [i]);
// x: an array
// v: search value
// i: start index (X-1)
const array = require("extra-array");
var x = [1, 2, 3, 2, 5];
array.lastIndexOf(x, 2);
// 3 ^
var x = [1, 2, 3, 2, 5];
array.lastIndexOf(x, 2, 2);
// 1 ^