source: trip-planner-front/node_modules/lodash/toPairsIn.js@ 6fe77af

Last change on this file since 6fe77af was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 737 bytes
Line 
1var createToPairs = require('./_createToPairs'),
2 keysIn = require('./keysIn');
3
4/**
5 * Creates an array of own and inherited enumerable string keyed-value pairs
6 * for `object` which can be consumed by `_.fromPairs`. If `object` is a map
7 * or set, its entries are returned.
8 *
9 * @static
10 * @memberOf _
11 * @since 4.0.0
12 * @alias entriesIn
13 * @category Object
14 * @param {Object} object The object to query.
15 * @returns {Array} Returns the key-value pairs.
16 * @example
17 *
18 * function Foo() {
19 * this.a = 1;
20 * this.b = 2;
21 * }
22 *
23 * Foo.prototype.c = 3;
24 *
25 * _.toPairsIn(new Foo);
26 * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)
27 */
28var toPairsIn = createToPairs(keysIn);
29
30module.exports = toPairsIn;
Note: See TracBrowser for help on using the repository browser.