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.

16 lines
391 B

4 years ago
  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;