import baseIndexOf from "./_baseIndexOf3.js";
import isArrayLike from "./isArrayLike3.js";
import isString from "./isString2.js";
import toInteger from "./toInteger3.js";
import values from "./values3.js";
var nativeMax = Math.max;
function includes(collection, value, fromIndex, guard) {
  collection = isArrayLike(collection) ? collection : values(collection);
  fromIndex = fromIndex && true ? toInteger(fromIndex) : 0;
  var length = collection.length;
  if (fromIndex < 0) {
    fromIndex = nativeMax(length + fromIndex, 0);
  }
  return isString(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1;
}
export {
  includes as default
};
//# sourceMappingURL=includes2.js.map
