Initial commit
[yaffs-website] / node_modules / grunt-contrib-watch / node_modules / lodash / internal / basePropertyDeep.js
1 var baseGet = require('./baseGet'),
2     toPath = require('./toPath');
3
4 /**
5  * A specialized version of `baseProperty` which supports deep paths.
6  *
7  * @private
8  * @param {Array|string} path The path of the property to get.
9  * @returns {Function} Returns the new function.
10  */
11 function basePropertyDeep(path) {
12   var pathKey = (path + '');
13   path = toPath(path);
14   return function(object) {
15     return baseGet(object, path, pathKey);
16   };
17 }
18
19 module.exports = basePropertyDeep;