1 var baseToPairs = require('./_baseToPairs'),
2 keysIn = require('./keysIn');
5 * Creates an array of own and inherited enumerable key-value pairs for `object`.
10 * @param {Object} object The object to query.
11 * @returns {Array} Returns the new array of key-value pairs.
19 * Foo.prototype.c = 3;
21 * _.toPairsIn(new Foo);
22 * // => [['a', 1], ['b', 2], ['c', 1]] (iteration order is not guaranteed)
24 function toPairsIn(object) {
25 return baseToPairs(object, keysIn(object));
28 module.exports = toPairsIn;