lib/util.js
function getIterableObjectEntries(obj) {

  let index = 0;
  const propKeys = Reflect.ownKeys(obj);

  return {
    [Symbol.iterator]() {
      return this;
    },
    next() {

      if (index < propKeys.length) {

        const key = propKeys[index];

        index += 1;
        return {"value": [key, obj[key]]};
      }

      return {"done": true};
    }
  };
}
function getIterableObjectEntries(obj) {

  let index = 0;
  const propKeys = Reflect.ownKeys(obj);

  return {
    [Symbol.iterator]() {
      return this;
    },
    next() {

      if (index < propKeys.length) {

        const key = propKeys[index];

        index += 1;
        return {"value": [key, obj[key]]};
      }

      return {"done": true};
    }
  };
}
function getIterableObjectEntries ( obj ) { let index = 0 ; const propKeys = Reflect . ownKeys ( obj ) ; return { [ Symbol . iterator ] ( ) { return this ; } , next ( ) { if ( index < propKeys . length ) { const key = propKeys [ index ] ; index += 1 ; return { "value" : [ key , obj [ key ] ] } ; } return { "done" : true } ; } } ; }
Creates an iterable based on an object literal
@param {Object} obj The source object which own keys should be iterable
@returns {Object} The iterable with the own keys
Creates an iterable based on an object literal