"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const _baseIndexOf = require("./_baseIndexOf.cjs");
const isArrayLike = require("./isArrayLike.cjs");
const isString = require("./isString.cjs");
const toInteger = require("./toInteger.cjs");
const values = require("./values.cjs");
var nativeMax = Math.max;
function includes(collection, value, fromIndex, guard) {
  collection = isArrayLike.default(collection) ? collection : values.default(collection);
  fromIndex = fromIndex && true ? toInteger.default(fromIndex) : 0;
  var length = collection.length;
  if (fromIndex < 0) {
    fromIndex = nativeMax(length + fromIndex, 0);
  }
  return isString.default(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && _baseIndexOf.default(collection, value, fromIndex) > -1;
}
exports.default = includes;
//# sourceMappingURL=includes.cjs.map
