esnext.object.iterate-values.js 348 B

1234567891011
  1. 'use strict';
  2. var $ = require('../internals/export');
  3. var ObjectIterator = require('../internals/object-iterator');
  4. // `Object.iterateValues` method
  5. // https://github.com/tc39/proposal-object-iteration
  6. $({ target: 'Object', stat: true }, {
  7. iterateValues: function iterateValues(object) {
  8. return new ObjectIterator(object, 'values');
  9. }
  10. });