import { y as _toIobject, t as _objectKeys, f as _descriptors } from './core.get-iterator-method-ea258bb1.js';
import { a as _objectPie } from './_object-pie-133f504a.js';

var isEnum = _objectPie.f;
var _objectToArray = function (isEntries) {
  return function (it) {
    var O = _toIobject(it);
    var keys = _objectKeys(O);
    var length = keys.length;
    var i = 0;
    var result = [];
    var key;
    while (length > i) {
      key = keys[i++];
      if (!_descriptors || isEnum.call(O, key)) {
        result.push(isEntries ? [key, O[key]] : O[key]);
      }
    }
    return result;
  };
};

export { _objectToArray as _ };
