Added comments.
This commit is contained in:
parent
ac35cb0f91
commit
f68bdadae9
|
@ -291,6 +291,7 @@ function mergeArrays(target, config, keyPrefix) {
|
|||
|
||||
function mergeArraysDiffLength(target, config) {
|
||||
var newTarget = _.cloneDeep(target, true);
|
||||
//modifies the target array with the union of both the target and config arrays.
|
||||
Array.prototype.splice.apply(target, [0, target.length].concat(_.union(newTarget, config)));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue