1b6ce40a179703daf118864e94c81836321de52d
[platform/framework/web/crosswalk-tizen.git] /
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;