"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const _baseTimes = require("./_baseTimes.js");
const isArguments$1 = require("./isArguments.js");
const isArray$1 = require("./isArray.js");
const isBuffer$1 = require("./isBuffer.js");
const _isIndex = require("./_isIndex.js");
const isTypedArray$1 = require("./isTypedArray.js");
var baseTimes = _baseTimes._baseTimes, isArguments = isArguments$1.isArguments_1, isArray = isArray$1.isArray_1, isBuffer = isBuffer$1.isBufferExports, isIndex = _isIndex._isIndex, isTypedArray = isTypedArray$1.isTypedArray_1;
var objectProto = Object.prototype;
var hasOwnProperty = objectProto.hasOwnProperty;
function arrayLikeKeys(value, inherited) {
  var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
  for (var key in value) {
    if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
    (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
    isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
    isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
    isIndex(key, length)))) {
      result.push(key);
    }
  }
  return result;
}
var _arrayLikeKeys = arrayLikeKeys;
exports._arrayLikeKeys = _arrayLikeKeys;
