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.

_basePick.js 501B

12345678910111213141516171819
  1. var basePickBy = require('./_basePickBy'),
  2. hasIn = require('./hasIn');
  3. /**
  4. * The base implementation of `_.pick` without support for individual
  5. * property identifiers.
  6. *
  7. * @private
  8. * @param {Object} object The source object.
  9. * @param {string[]} paths The property paths to pick.
  10. * @returns {Object} Returns the new object.
  11. */
  12. function basePick(object, paths) {
  13. return basePickBy(object, paths, function(value, path) {
  14. return hasIn(object, path);
  15. });
  16. }
  17. module.exports = basePick;