2.10.19 • Published 3 years ago
@extra-array/search-infix-right v2.10.19
Finds last index of an infix. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:
Alternatives: searchInfix, searchInfixRight, searchInfixAll. Similar: hasInfix, searchInfix. Similar: search, scan, find.
This is part of package extra-array.
array.searchInfixRight(x, y, [fc], [fm]);
// x: an array
// y: search infix
// fc: compare function (a, b)
// fm: map function (v, i, x)
const array = require("extra-array");
var x = [1, 2, 3, 4];
var y = [2, 3];
array.searchInfixRight(x, y);
// 1
var y = [-2, -3];
array.searchInfixRight(x, y);
// -1
array.searchInfixRight(x, y, (a, b) => Math.abs(a) - Math.abs(b));
// 1
array.searchInfixRight(x, y, null, v => Math.abs(v));
// 1
References
2.10.19
3 years ago
2.10.18
4 years ago
2.10.17
4 years ago
2.10.16
4 years ago
2.10.15
4 years ago
2.10.10
4 years ago
2.10.11
4 years ago
2.10.12
4 years ago
2.10.13
4 years ago
2.10.14
4 years ago
2.10.9
4 years ago
2.10.8
4 years ago
2.10.7
4 years ago
2.9.64
4 years ago
2.10.5
4 years ago
2.10.6
4 years ago
2.10.4
4 years ago
2.10.1
4 years ago
2.10.2
4 years ago
2.10.0
4 years ago
2.9.63
4 years ago
2.9.62
4 years ago
2.9.61
4 years ago
2.9.60
4 years ago
2.9.58
4 years ago
2.9.59
4 years ago
2.9.57
4 years ago
2.9.56
5 years ago
2.9.55
5 years ago
2.9.54
5 years ago