You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -139,15 +138,15 @@ Copy properties of *src* to *dst* deeply.
139
138
If *fromto* is given, it is able to copy between different properties.
140
139
If *converter* is given, it is able to convert the terminal values.
141
140
142
-
***Arguments:**
141
+
**Arguments:**
143
142
144
-
***src** [object] : a source object of copy.
145
-
***dst** [object] : a destinate object of copy.
146
-
***fromto** [object | array] : an object mapping properties between *src* and *dst*. (optional)
147
-
***converter** [function] : a function to convert terminal values in *src*. (optional)
148
-
* **reverse** [boolean] : copys reversively from dst to src and returns src object. `fromto` is also reversively used from value to key. This default value is `false`. (optional)
143
+
***src** [object] : a source object of copy.
144
+
***dst** [object] : a destinate object of copy.
145
+
***fromto** [object | array] : an object mapping properties between *src* and *dst*. (optional)
146
+
***converter** [function] : a function to convert terminal values in *src*. (optional)
147
+
* **reverse** [boolean] : copys reversively from dst to src and returns src object. `fromto` is also reversively used from value to key. This default value is `false`. (optional)
149
148
150
-
* **Return** [object] : *dst* object after copying.
*converter* is a function to convert terminal values of propeerties of *src*.
172
171
173
-
***Arguments:**
172
+
**Arguments:**
174
173
175
-
***srcValue**[any] : a source property value to be converted.
176
-
***srcKeychain**[string] : a source property key string concatenated with dots.
177
-
***dstKeychain**[string] : a destination property key string concatenated with dots.
178
-
***dstValue**[any] : a destination property value before copying.
179
-
***dstParent**[object] : the destination node object which has the copied property.
174
+
***srcInfo**[object] : an object which has informations about the current node of *src*. This object has following properties:
180
175
181
-
***Return:**[any] : converted value to be set as a destination property value. If this value is undefined, the destination property is not set to the destination node object.
176
+
***value** : The value of the current node.
177
+
***key** : The key name of the current node.
178
+
***keyChain** : The full key of the current node concatenated with dot.
179
+
***depth** : The depth of the current node.
180
+
***parent** : The parent node of the current node.
181
+
182
+
***dstInfo**[object] : an object which has informations about the current node of *dst*. This object has following properties:
183
+
184
+
***value** : The value of the current node.
185
+
***key** : The key name of the current node.
186
+
***keyChain** : The full key of the current node concatenated with dot.
187
+
***depth** : The depth of the current node.
188
+
***parent** : The parent node of the current node.
189
+
190
+
191
+
**Return:**[any] : converted value to be set as a destination property value. If this value is undefined, the destination property is not set to the destination node object.
182
192
183
193
License
184
194
-------
@@ -189,7 +199,7 @@ This program is free software under [MIT][mit-url] License.
189
199
See the file LICENSE in this distribution for more details.
0 commit comments