import p from "./_baseIndexOf.js";
import s from "./isArrayLike.js";
import u from "./isString.js";
import g from "./toInteger.js";
import h from "./values.js";
var m = Math.max;
function y(a, i, r, v) {
  a = s(a) ? a : h(a), r = r ? g(r) : 0;
  var t = a.length;
  return r < 0 && (r = m(t + r, 0)), u(a) ? r <= t && a.indexOf(i, r) > -1 : !!t && p(a, i, r) > -1;
}
export {
  y as default
};
