es7.object.enumerable-values.js 343 B

123456789101112
  1. // https://github.com/leobalter/object-enumerables
  2. var $export = require('./_export')
  3. , toObject = require('./_to-object');
  4. $export($export.S, 'Object', {
  5. enumerableValues: function enumerableValues(O){
  6. var T = toObject(O)
  7. , properties = [];
  8. for(var key in T)properties.push(T[key]);
  9. return properties;
  10. }
  11. });