main
Last change
on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
391 bytes
|
Rev | Line | |
---|
[79a0317] | 1 | var baseGet = require('./_baseGet');
|
---|
| 2 |
|
---|
| 3 | /**
|
---|
| 4 | * A specialized version of `baseProperty` which supports deep paths.
|
---|
| 5 | *
|
---|
| 6 | * @private
|
---|
| 7 | * @param {Array|string} path The path of the property to get.
|
---|
| 8 | * @returns {Function} Returns the new accessor function.
|
---|
| 9 | */
|
---|
| 10 | function basePropertyDeep(path) {
|
---|
| 11 | return function(object) {
|
---|
| 12 | return baseGet(object, path);
|
---|
| 13 | };
|
---|
| 14 | }
|
---|
| 15 |
|
---|
| 16 | module.exports = basePropertyDeep;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.