import { u as _toIobject, r as _objectKeys, f as _descriptors } from './core.get-iterator-method-95db387d.js';
import { d as _objectPie } from './extends-2f4448b8.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 _ };
