Security update for permissions_by_term
[yaffs-website] / node_modules / uncss / node_modules / lodash / toPairs.js
1 var baseToPairs = require('./internal/baseToPairs'),
2     keys = require('./keys');
3
4 /**
5  * Creates an array of own enumerable key-value pairs for `object`.
6  *
7  * @static
8  * @memberOf _
9  * @category Object
10  * @param {Object} object The object to query.
11  * @returns {Array} Returns the new array of key-value pairs.
12  * @example
13  *
14  * function Foo() {
15  *   this.a = 1;
16  *   this.b = 2;
17  * }
18  *
19  * Foo.prototype.c = 3;
20  *
21  * _.toPairs(new Foo);
22  * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)
23  */
24 function toPairs(object) {
25   return baseToPairs(object, keys(object));
26 }
27
28 module.exports = toPairs;