implementation.js 354 B

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