function isIndex(value, length) {
  value = (typeof value == 'number' || reIsUint.test(value)) ? +value : -1;
  length = length == null ? MAX_SAFE_INTEGER : length;
  return value > -1 && value % 1 == 0 && value < length;
}
Checks if `value` is object-like.

@private
@param {*} value The value to check.
@returns {boolean} Returns `true` if `value` is object-like, else `false`.