|
9 | 9 | _.mixin({
|
10 | 10 | /**
|
11 | 11 | * Executes a deep check for the existence of a property in an object tree.
|
12 |
| - * @param object - The root object of the object tree. |
13 |
| - * @param propertyPath - The dot separated propertyPath. |
| 12 | + * @param {Object} object - The root object of the object tree. |
| 13 | + * @param {string} propertyPath - The dot separated propertyPath. |
14 | 14 | * @returns {boolean}
|
15 | 15 | */
|
16 | 16 | deepIn: function(object, propertyPath){
|
|
29 | 29 | },
|
30 | 30 | /**
|
31 | 31 | * Executes a deep check for the existence of a own property in an object tree.
|
32 |
| - * @param object - The root object of the object tree. |
33 |
| - * @param propertyPath - The dot separated propertyPath. |
| 32 | + * @param {Object} object - The root object of the object tree. |
| 33 | + * @param {string} propertyPath - The dot separated propertyPath. |
34 | 34 | * @returns {boolean}
|
35 | 35 | */
|
36 | 36 | deepHas: function(object, propertyPath){
|
|
49 | 49 | },
|
50 | 50 | /**
|
51 | 51 | * Retreives the value of a property in an object tree.
|
52 |
| - * @param object - The root object of the object tree. |
53 |
| - * @param propertyPath - The dot separated propertyPath. |
| 52 | + * @param {Object} object - The root object of the object tree. |
| 53 | + * @param {string} propertyPath - The dot separated propertyPath. |
54 | 54 | * @returns {*} - The value, or undefined if it doesn't exists.
|
55 | 55 | */
|
56 | 56 | deepGetValue: function(object, propertyPath){
|
|
65 | 65 | },
|
66 | 66 | /**
|
67 | 67 | * Retreives the own value of a property in an object tree.
|
68 |
| - * @param object - The root object of the object tree. |
69 |
| - * @param propertyPath - The dot separated propertyPath. |
| 68 | + * @param {Object} object - The root object of the object tree. |
| 69 | + * @param {string} propertyPath - The dot separated propertyPath. |
70 | 70 | * @returns {*} - The value, or undefined if it doesn't exists.
|
71 | 71 | */
|
72 | 72 | deepGetOwnValue: function(object, propertyPath){
|
|
81 | 81 | },
|
82 | 82 | /**
|
83 | 83 | * Sets a value of a property in an object tree. Any missing objects will be created.
|
84 |
| - * @param object - The root object of the object tree. |
85 |
| - * @param propertyPath - The dot separated propertyPath. |
86 |
| - * @param value - The value to set. |
87 |
| - * @returns {*} |
| 84 | + * @param {Object} object - The root object of the object tree. |
| 85 | + * @param {string} propertyPath - The dot separated propertyPath. |
| 86 | + * @param {*} value - The value to set. |
| 87 | + * @returns {Object} The object. |
88 | 88 | */
|
89 | 89 | deepSetValue: function(object, propertyPath, value){
|
90 | 90 | var properties, property, currentObject;
|
|
106 | 106 | },
|
107 | 107 | /**
|
108 | 108 | * Executes a deep pluck on an collection of object trees.
|
109 |
| - * @param collection - The collection of object trees. |
110 |
| - * @param propertyPath - The dot separated propertyPath. |
111 |
| - * @returns {Array} |
| 109 | + * @param {Object|Array} collection - The collection of object trees. |
| 110 | + * @param {string} propertyPath - The dot separated propertyPath. |
| 111 | + * @returns {Object|Array} |
112 | 112 | */
|
113 | 113 | deepPluck: function(collection, propertyPath){
|
114 | 114 | return _.map(collection, function(item){
|
|
0 commit comments