_basePropertyDeep.js 391 B

1234567891011121314151617
  1. var baseGet = require('./_baseGet');
  2. /**
  3. * A specialized version of `baseProperty` which supports deep paths.
  4. *
  5. * @private
  6. * @param {Array|string} path The path of the property to get.
  7. * @returns {Function} Returns the new accessor function.
  8. */
  9. function basePropertyDeep(path) {
  10. return function(object) {
  11. return baseGet(object, path);
  12. };
  13. }
  14. module.exports = basePropertyDeep;