|
@@ -20,9 +20,14 @@ var cowValueModel = exports.cowValueModel = function cowValueModel() {
|
|
}
|
|
}
|
|
|
|
|
|
var keys = [];
|
|
var keys = [];
|
|
- keyDescriptions.forEach(function (each) {
|
|
|
|
- if (typeof each === 'number') keys.push(each);else keys.push.apply(keys, _toConsumableArray(each.toString().split('.')));
|
|
|
|
- });
|
|
|
|
|
|
+
|
|
|
|
+ function fillKeys(keyDescriptions) {
|
|
|
|
+ keyDescriptions.forEach(function (each) {
|
|
|
|
+ if (typeof each === 'number') keys.push(each);else if (Array.isArray(each)) fillKeys(each);else keys.push.apply(keys, _toConsumableArray(each.toString().split('.')));
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ fillKeys(keyDescriptions);
|
|
|
|
|
|
function setField() {
|
|
function setField() {
|
|
var x = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
var x = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|