File size: 372 Bytes
b5ea024
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"use strict";

var ensureValue = require("type/value/ensure");

var objPropertyIsEnumerable = Object.prototype.propertyIsEnumerable;

module.exports = function (object) {
	object = Object(ensureValue(object));
	var result = [];
	for (var key in object) {
		if (!objPropertyIsEnumerable.call(object, key)) continue;
		result.push([key, object[key]]);
	}
	return result;
};