Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

toPairsIn.js 737B

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