shim.js 305 B

1234567891011121314
  1. "use strict";
  2. var ensureValue = require("../valid-value");
  3. module.exports = function (object) {
  4. ensureValue(object);
  5. var result = [];
  6. object = Object(object);
  7. for (var key in object) {
  8. if (!propertyIsEnumerable.call(object, key)) continue;
  9. result.push([key, object[key]]);
  10. }
  11. return result;
  12. };